Reputation: 1313
I've made a VS 2010 project and created 1 wspbuilder solution.
I have 3 features one to deploy columns and one for CT's and one for a web part.
The columns deploy perfectly as do the content types!
When i go to find the feature (in the GUI) for deploying my web part. I can't find it!
I've looked on google to no avail.
THe above code is for my feature. As far as i can see i am getting no errors in the logs.
I have tried ebnabling the feature with powershell but get The feature is not a farm level feature and is not found in a site level defined by the URL.
<Feature Id="8440ac56-e102-40a4-ac91-1c5249b62fe1"
Title="******.PMO.TopLevelRollup"
Description="The description"
Version="1.0.0.0"
Hidden="FALSE"
Scope="Web"
DefaultResourceFile="core"
ReceiverAssembly="*******.PMO, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6d3195b961dfcdc1"
ReceiverClass="********.PMO.EventHandlers.Features.TopLevelRollupReceiver"
xmlns="http://schemas.microsoft.com/sharepoint/">
<ElementManifests>
<ElementManifest Location="elements.xml"/>
<ElementFile Location="********.PMO.TopLevelRollup.webpart" />
</ElementManifests>
</Feature>
Maybe i am deploying incorrectly? I use
Add-SPSolution
Install-SPSolution -Identity mywspfile.wsp
Any help will be muchly appreciated.
Cheers Truez
Upvotes: 0
Views: 4460
Reputation: 87
A web part can be deployed only on site collection level as the access to the web part gallery exists only through site collection root web. You may have to change the feature scope from web to site.
Upvotes: 3
Reputation: 1313
I found the solution! In VS2010 the Target framework seems to set itself to blank. This gives an error whilst the wsp is being built via wsp builder.
I set the framework to the one I wanted and this seems to work now!
Thanks for the replies :)
Upvotes: 1
Reputation: 11
Try changing the Scope="Web" to Scope="Site" in the feature definition. That should ensure that at least the feature will be available at site level. Hope this helps!
Upvotes: 1