Tuesday, May 8, 2012

Error: This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application.

When I tried deploying/retracting a solution file (.wsp), got this error:
This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application.
This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application
This is because, This solution has a feature assembly which should be deployed to GAC globally, and not with a particular web application.

Resolution:
Simply remove the URL parameter from the command Line!
stsadm -o deploysolution -name <Solution-File-Name> -allowgacdeployment -immediate

If you want to make it available only to a particular web application, change the solution settings Assembly Deployment Target from GlobalAssemblyCache to WebApplication.

Or set the feature scope to WebApplication, so that SharePoint knows which web.config file to update in IIS while registering SafeControls. In an another case, this was due to web.config safecontols entries missing. Make sure you have made safe control entries in the web.config  file.



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Check out these SharePoint products:

No comments :

Post a Comment

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...