This solution contains no resources scoped for a Web application – Sharepoint WSP deployment exception

When we started working on sharepoint we faced an issue while installing the package. We have used below command to deploy the solution.

%STSADM% -o deploysolution -name testSharepointSolution.wsp -local -force -url http://mywebapplication/

I encountered the following error:

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

If you found this “This solution contains no resources scoped for a Web application” error when installing the SharePoint solution, that means as explained by error message you cannot deploy solution on particular web application because this solution contains no resource scoped for web application. So you can’t use SharePoint solution installer or deploy by sharepoint admin. You can use below command

%STSADM% -o deploysolution -name testSharepointSolution.wsp -local -force

You cannot use -url parameter if your solution package does not have an assembly or feature specific elements(elements.xml).

Then why we need to provide the -url as a parameter? Reason is sharepoint need to know which web application web.config it needs to add <SafeControl> attribute.

Similar Topics:

Tags:

This solution contains no resources scoped for a web application and cannot be deployed to a particular web applicationthis solution contains no resources scoped for a web applicationthis solution contains no resources scoped for a web application and cannot be deployedthe solution contains no resources scoped for a Web applicationThis solution contains no resources scoped for a Web application and cannot be d eployed to a particular Web applicationthis solution contains no resources scopedthis solution contains not resources scoped for a web applicationsharepoint force deploy web applicationthis resource contains no resources scopedthe solution contains no resources scoped for a web application and cannot be deployed to a particular web application
We will send you more information on This solution contains no resources scoped for a Web application – Sharepoint WSP deployment exception.
Enter your email address:
This entry was posted in Sharepoint and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>