Home > Deployment, SharePoint 2010 > How to fix “Error: This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application.”

How to fix “Error: This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application.”

Problem:

When I try to deploy my custom wsp solution to a specific web application, I got the error below:

This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application.

Analysis:

The error message itself explains why you cannot deploy the solution to a web application. However if you do not like to deploy the solution to all the web applications and only like to deploy your solution to a specific application , you need to change the solution settings Assembly Deployment Target from GlobalAssemblyCache to WebApplication.

From:

TO:

Solution:

After you change the Assembly Deployment Target and run the script again, you will have the solution deployed successfully.
References:

http://blogs.msdn.com/b/jjameson/archive/2007/06/17/issues-deploying-sharepoint-solution-packages.aspx

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: