Link to home
Create AccountLog in
Avatar of shieldguy
shieldguyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

How to deploy a solution on a specific web application and not globally

I have a project on Visual Studio 2008 that contains some list templates. I created the solution package (.wsp) using wsp builder. I then added the solution using stsadm command. When I go to solution management under central administration and deploy the solution, it says the solution can only be deployed globally and not to a specific web application and it doesn't show me a dropdown of web applications.

How this can be changed to deploy on a web aplication.

Thanks
Avatar of Member_6283346
Member_6283346

Hi! To be installable to a specific web-application, you solution should contain features scoped to WebAppliction, Site or Web. If your wsp package does not contains features with these scopes then it cannot be deployed to a specific application.
Avatar of shieldguy

ASKER

I have already tried both 'Site' and 'WebApplication' but no joy.
Try to unpack your wsp (rename it to *.cab) and look what is inside. If you can't see anything wrong, post content of manifest.xml and all feauters definitions here.
The following is the manifest code. I can't see any features in .wsp.

<?xml version="1.0" ?>
- <!--  Solution created by WSPBuilder. 09/11/2011 12:45:09  
  -->
- <Solution SolutionId="1e65d041-017b-4c51-a784-824797480587" xmlns="http://schemas.microsoft.com/sharepoint/">
- <Assemblies>
  <Assembly Location="Connect.ListTemplates.General.dll" DeploymentTarget="GlobalAssemblyCache" />
  </Assemblies>
  </Solution>
Yes, that's why it can't be deployed to specific WebApplication. It looks like you've built package incorrectly. Check once again in wsp builder that features are included into package.
Well I can see a feature in my project and I am using wsp builder to build the package. don't know why it;s not including this.
Well, I can't help you with wspbuilder, since I've never used it. I would advise to use VSeWSS 3.0 instead or I can assist you on creating package manually.
if you could assist me creating package manually will be great.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Member_6283346
Member_6283346

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer