I was deploying wsps on my sharepoint box using the deployment script i created earlier and i hit the following error.
This solution contains no resources scoped for a web application and cannot be retracted.
This solution contains no resources scoped for a web application and cannot be deployed to a particular web application in stsdev i recently created a web part based on the stsdev web part project and found it was very simple to use.
I then got the following error.
Today i tried to deploy a solution through powershell with the command.
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 solution contains no resources scoped for a web application and cannot be deployed to a particular web application ask question asked 10 years 1 month ago.
Sharepoint has the annoying habit of forcing you to deploy globally whenever possible.
Here is the command that is breaking.
This solution contains resources scoped for a web application and must be deployed to one or more web applications.
Remove the allwebapplicaitons and this global solution will be deployed globally to the farm and will be available to all web applicaitons.
Can someone help me debug this.
If the solution has no web application resources it is considered a global solution and does not actually need to target an web applications.
When you try to deploy a global solution to a specific url you get the following message.
Every other install spsolution command uses allwebapplications and i do not want to specify the web application directly using url.
This solution contains no resources scoped for a web application and cannot be deployed to a particular web application.