Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question
add comment

4 Answers

up vote 3 down vote accepted

I've sometimes had to add a dummy SafeControl, just so the WSP identifies itself as needing to be deployed to a particular webapp.

share|improve this answer
add comment

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

share|improve this answer
add comment

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.

share|improve this answer
add comment

You can select the Web Application to which the solution is deployed. You cannot further limit solution to specific Site Collection within Web Application.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.