I'm trying to figure out exactly how I can deploy a solution to a single web application without it being deployed to other web applications in the same farm.

The reason for this is that I have different customers each with their own web application in my farm, but I don't want the same solution shared with all the other web applications.

So I've heard some guys suggest using sandboxed solutions, but then others say that sandboxed solutions have certain limitations they can't accept. What exactly are these limitations with sandboxed solutions?

So now I tried the following to deploy a dummy solution I created.

Add-SPSolution -c:/mywebpart.wsp

Install-SPSolution mywebpart.wsp -WebApplication "SharePoint Debugging" -GacDeployment

And I get the error : This solution contains no resources scoped for a web application.

So what can I do to have my solution deployed to a single web application?

  • Call me a rogue and a scofflaw, but I wasn't able to leave a comment, so am trying to post in the "Answers" section: I already have a SafeControl entry (I didn't add it, at least not explicitly), and I am getting this err msg. Here is what I've got (bogus PublicKeyToken): <Assemblies> <Assembly Location="PostTravelWizard.dll" DeploymentTarget="GlobalAssemblyCache"> <SafeControls> <SafeControl Assembly="PostTravelWizard, Version=, Culture=neutral, PublicKeyToken=b52AndBombedEmWithTheBlooz" Namespace="PostTravelWizard.PostTravelWizardWebPart" TypeName="*" /> </SafeControls> </Assembly> </ Commented Sep 16, 2015 at 17:55

1 Answer 1


1) Open your manifest file of Package

2) (+ Edit Options) Expand it. Click on Overwrite generated XML and edit manifest in the XML editor link. > Edit manifest in the XML editor.

3) In Edit mode node look like.

    <Assembly Location="SharePointProject1.dll" DeploymentTarget="GlobalAssemblyCache" />

4) Just add dummy SafeControl to the Assembly node.

  • After doing this and packaging the solution again and removing the old solution and re-adding the new one - I don't see the solution in either one of the following under site settings : "Web Parts Gallery", "Site Features", "Site Collection Features". Commented Nov 25, 2013 at 8:20
  • Did you see that your solution deployed in central administration? Commented Nov 25, 2013 at 8:23
  • Central Administration > System Settings > Farm Management > Manage Farm Solutions. Commented Nov 25, 2013 at 8:23
  • Yes it's there. And it shows that it is deployed to the web application I specified. But I don't see it in that web application's site. Commented Nov 25, 2013 at 8:32
  • Check that all items from your solution exists in 14 hive folder. And check Logs in 14 hive folder. Commented Nov 25, 2013 at 8:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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