Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I have a PowerShell script that deploys about 12 web parts. They have all been created in the manner through visual studio 2010 and are being deployed to SharePoint 2010.

I am getting the following error when running Install-SPSolution for one of my web parts: Install-SPSolution : This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application.

Can someone help me debug this? Every other Install-SPSolution command uses -AllWebApplications, and I do not want to specify the web application directly using -URL. Here is the command that is breaking (this is the same command used to successfully deploy all 11 other web parts):

Install-SPSolution –Identity PortalSelector.wsp -AllWebApplications -GACDeployment
like image 377
Josh Avatar asked Aug 11 '10 18:08

Josh


2 Answers

Wow, this is old. You're probably a PS guru by now.

For the archives / next visitor give the following a try:

Install-SPSolution –Identity PortalSelector.wsp -GACDeployment

or

Install-SPSolution –Identity PortalSelector.wsp -GACDeployment -Confirm:$false

The latter prevents the confirmation dialog from popping up.

like image 66
Jason Weber Avatar answered Nov 16 '22 03:11

Jason Weber


Event i found the same issue when im started working on sharepoint 2010. This is the solution i found and sharing it may helps to others

http://programming.cmsstores.com/this-solution-contains-no-resources-scoped-for-a-web-application-sharepoint-wsp-exception/

like image 26
sandesh M M Avatar answered Nov 16 '22 01:11

sandesh M M