How to fix “Error: This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application.”
Posted
by ybbest
on YBBest
See other posts from YBBest
or by ybbest
Published on Sat, 17 Nov 2012 08:47:34 +0000
Indexed on
2012/11/17
11:29 UTC
Read the original article
Hit count: 204
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:
© YBBest or respective owner