Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How to deploy custom solution feature to Sites and Farm Level (Central Admin) site?

$
0
0

I have a custom C# solution that is scoped at the Site level.  Once deployed I am having some trouble getting it deployed to the farm Central Administration site.  The solution has a control that I have to mark as a SafeControl in Visual Studio. I'm only mentioning this because I think it is part of my problem.  

If I deploy the solution using this command:

Install-SPSolution -Identity MyCustomSolution.wsp -GACDeployment

I'll get this error message: "This solution contains resources scoped for a web application and must be deployed to one or more web applications". 

If I deploy using this command:

Install-SPSolution -Identity MyCustomSolution.wsp -WebApplication https://MyCentralAdminSite -GACDeployment

It will act as if it's deployed but I go to the Central Administration web application site the feature doesn't appear in the list of Site Features for the CA site. 

If I deploy to my main front-end user site as this:

Install-SPSolution -Identity MyCustomSolution.wsp -WebApplication http://www.mypublicsite.com -GACDeployment

It deploys ok and the feature is available for activation on all the site collections within that web application. 

Is there a way to deploy a custom solution which contains a feature to both the Central Admin site as well as the main public facing web application site?

Thanks!


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>