Monday, November 5, 2012

this solution contains resources scoped for a web application



This is one more issue you will get when you try to deploy the sharepoint template project.

This is because of the targeted scope and deployment of the application is at Web application level.

Couple of fixes for this in different scenarios :

In Case of Solution Deployment from VS :

Go to Properties of the project by clicking on F4

Change the Change the assembly Deployment Target value to GlobalAssemblyCache / Web Application based on your deployment target.

In Case of Stsadm :

i. If you scoped your solution to WebApplication and deploy the solution in WebApplication level use as below

STSADM -o deploysolution -name SolutionFileName -local


ii. If you scoped your solution to WebApplication and deploy the solution in Globally use as below

STSADM -o deploysolution -name SolutionFileName -url http://servername/ -local


In Case of ECMA Script :

Install-SPSolution -Identity Agilent.ECMS.Rad.CSVPortal.wsp -WebApplication "https://localhost:9000" -GACDeployment 


Thank you !!!




No comments:

Post a Comment