Thursday, February 7, 2013

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


Here is another SharePoint post for the deployment guys. I was deploying a SharePoint solution using SharePoint Admin utility i.e. Stsadm . I started facing error i.e. "This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application"

After analyzing the error message i.e. why I cannot deploy the solution to a web application. However if you do not like to deploy the solution to all the web applications and only like to deploy your solution to a specific application , you need to change the solution settings Assembly Deployment Target from GlobalAssemblyCache to WebApplication.



Change Assembly Deployment Target to Web-application, as shown below





After you change the Assembly Deployment Target and run the script again, you will have the solution deployed successfully. Happy deployment.


No comments:

Post a Comment

Earn Money ! Affiliate Program
Open Directory Project at dmoz.org