none
Install-SPSolution : This solution contains no resources scoped for a Web application RRS feed

  • Question

  • Hi,

    i have create event handler and its deployed directly from visual studio in test environment. when i try to deployed it in production getting following error :

    Add-SPSolution c:\SharePointProject2.wsp

    Getting deployed status false when run following command 

    Install-SPSolution –Identity SharePointProject2.wsp –WebApplication http://market.mydomain.com –GACDeployment

    Getting following error, Please tell what could be an issue and how to resolve it.

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

    pls help


    iffi

    Thursday, April 26, 2012 8:39 AM

Answers

All replies

  • This indicates that your wsp solution contains items that will be available to all web applications (such as a dll deployed to the gac, or an application page stored in the layouts folder of the sharepoint root). For such items, it is illogical (a contradictio in terminis) and not allowed to deploy them to a particular web app. Changing the scope to farm should solve the issue, or you should reconsider and remove globally available items from your wsp.

    Kind regards,
    Margriet Bruggeman

    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

    • Proposed as answer by Neeloj Monday, June 10, 2013 8:38 AM
    Thursday, April 26, 2012 9:09 AM
  • Hi,

    I have create event handler which just update a filed of list item under any web application. its working fine at test environment. i have created it as farm solution. 

    I don not want to deploy / available at all web application just 1. 

    pls guide.

    thanks.


    iffi

    Thursday, April 26, 2012 9:29 AM
  • This is only possible if you remove items that will be globally available. Right now I see 2 solutions, they may work for you:

    - If you're deploying to the GAC, deploy to the bin folder of the SPS web app instead.

    - Split the feature into 2 parts: one with resources that will be available globally, and one with web app specific stuff.


    Kind regards,
    Margriet Bruggeman

    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

    Thursday, April 26, 2012 9:37 AM
  • Hi,

    my event receiver call userprofile service which runs under farm.  when deploy on production i want to use this feature/ event handler on only one web application.

    is there anyway ti deploy it only at site level.

    thx.


    iffi

    Thursday, April 26, 2012 11:06 AM
  • Hi imughal,

    You can try to add a dummy safe control entry to your package file as SharePoint checks whether there are items which have to be deployed to specific web application when adding your solution to solution gallery, and one of them is safe control entries, you can refer to the following link for more information:
    http://sharedpointers.blogspot.com/2011/03/deploying-solutions-to-specific-web.html

    Thanks,
    Qiao


    Qiao Wei

    TechNet Community Support

    • Marked as answer by Shimin Huang Friday, May 4, 2012 7:49 AM
    Friday, April 27, 2012 9:12 AM
    Moderator
  • Hi, 

    I changed the scope to farm buy I'm still getting the same error do you know what could this be?

    Thanks

    Monday, May 20, 2013 12:38 PM
  • Hi

    Please try this:

    Install-SPSolution -Identity $SolutionPackageName -WebApplication $WebApplication -GACDeployment -Confirm:$false

    Thanks,

    Kirti P.

    Friday, July 11, 2014 2:42 PM