I have a Sharepoint 2010 application that consists of Sharepoint application pages and donot contain any web parts. So when I deploy the wsp of the application from the central administration the application will be globally deployed. I want avoid this and deploy the application on to a particular site. How do I accomplish this?
|
I've sometimes had to add a dummy SafeControl, just so the WSP identifies itself as needing to be deployed to a particular webapp. | |||
|
feedback
|
|
You can set the scope of the WSP package from Visual Studio. Double click the Feature and select Scope: Web (for web application), or Site (for site collection). When you deploy the package, for web or site scope, you specify the Url to deploy to. Here's a link for reference: http://msdn.microsoft.com/en-us/library/ee231544.aspx | |||
|
feedback
|
|
If you want to deploy your application page which are accessible like http://{site}/_layouts/yourpage.aspx then it is doesn't really matter if you deploy them Globally (across all web applications) or to a specific Web application because they will get deployed as an application page under layouts folder and will be accessible from any Web application. Anyway, as Russel said, you can change their scope using Visual Studio 2010. | |||
|
feedback
|
|
You can select the Web Application to which the solution is deployed. You cannot further limit solution to specific Site Collection within Web Application. | |||
|
feedback
|
