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!