Error: this solution contains no resources scoped for a web application and can not be deployed to a particular web application
I was trying to install my feature....
Install-SPSolution –Identity MyWSP.wsp –WebApplication http://SP2010 –GACDeployment
It is working when i use below command:
Install-SPSolution -Identity MyWSP.wsp -GACDeployment -force
The scope of feature is: webapplication
I found the solution after spending some time...........
Solution:
Open source code in Visual Studio. In the solution explorer, click on project-->properties or F4-->
Assembly Deployment type : Web Application
Earlier it was GlobalAssemblyCache ..
Open source code in Visual Studio. In the solution explorer, click on project-->properties or F4-->
Assembly Deployment type : Web Application
Earlier it was GlobalAssemblyCache ..
Now run
Install-SPSolution –Identity MyWSP.wsp –WebApplication http://SP2010 –GACDeployment
Install-SPSolution –Identity MyWSP.wsp –WebApplication http://SP2010 –GACDeployment
It worked......
If you are getting same error, try below...
Install-SPSolution -Identity MyWSP.wsp -local -GACDeployment -force
To Enable
Enable-SPFeature -Identity MyWSP.wsp -url http://SP2010 -force