none
Event Receiver - Scope Given as Web but while deploying no url choice column available from Central Admin RRS feed

  • Question

  • Hi,

    We have an event receiver given with the scope of Web.

    Now after we add solution, the solution when we try to deploy from Central Administration (Operation->solution management) , the window was not showing the drop down for the site urls to deploy the solution.

    sometimes we have seen the choice drop down for the features in web level.

    Why this inconsistent behaviour.

    Thanks in advance

    Veena R

     

     


    Veena Raju
    Wednesday, December 7, 2011 10:55 AM

Answers

  • Hi,

    Event receivers are usually deployed via a feature. A feature can be scoped to farm, web application, Site collection or web.

    The scope of a feature has nothing to do with the way SharePoint deploys a solution that installs that feature.

    A solution is deployed either globally or to a web application. SharePoint decides how to deploy a solution according to the solution manifest :

    - If in the solution manifest, the assembly's attribute DeployementTarget="GlobalAssemblyCache", SharePoint will not ask you for the web application.
    - If the attribute DeployementTarget="WebApplication", SharePoint will ask you for the web application to which the solution will be deployed.
    - If the attribute DeployementTarget="GlobalAssemblyCache" and SafeControls are needed for the assembly, especially for web parts, SharePoint will ask for the we application, because the safe controls are added to the web.config of the web application.

    To see the solution manifest, change the extension of your solution file from .wsp to .cab e.g. Mysolution.wsp to Mysolution.cab. Then use windows explorer to open the file and extract the file Manifest.xml.

    Hope this helps,

    Regards,

    Djamel Chagour

    http://spbyexamples.blogspot.com/
    Saturday, December 24, 2011 5:37 AM

All replies

  • Hi Veena,

    When you use the scope as Web application, you can see the choice drop down for the features in web level, you can also find the description in that "Deploy To" section in Deploy Solution page from CA as follow,

    Deploy To? 
    The solution contains Web application scoped resources and should be deployed to specific Web applications. Please choose the Web application where you want the solution to be deployed. 

    There is an article about the scope of feature you can check, http://www.etechplanet.com/blog/understanding-scope-of-sharepoint-features-(wss-30moss-2007).aspx

    Thanks


    Daniel Yang

    TechNet Community Support

    Tuesday, December 13, 2011 1:13 PM
    Moderator
  • Thanks , but my question still remains. We have two solutions one is a web part and other is a workflow.

    Now we gave scope of the webpart as site and also the scope of workflow as site.

     

    Now when we deployed web part , in the CA->deploy option the list of site urls were there. But for the workflow even though the scope is Site, there is no dropdown and the details shown that it will be deployed globally.

     

    Why this differences,

    Thanks in advance

    Veena R


    Veena Raju
    Thursday, December 15, 2011 8:36 AM
  • Hi,

    Workflow and Visual Web part templates created through Visual Studio was a farm solution based.

    The webpart you created through visual studio available on the target site which you selected on solution creation time.The Workflow template always global solution throughout the farm. can be activated through features gallery on site level.

     

     


    Think More..Do More..
    Saturday, December 17, 2011 5:57 PM
  • OK, Thanks my doubt is partially cleared.

     

    I will come with the actual scenario which resulted in my doubt..in a week.

     

    Thanks

    Veena R


    Veena Raju
    Friday, December 23, 2011 1:53 PM
  • Hi,

    Event receivers are usually deployed via a feature. A feature can be scoped to farm, web application, Site collection or web.

    The scope of a feature has nothing to do with the way SharePoint deploys a solution that installs that feature.

    A solution is deployed either globally or to a web application. SharePoint decides how to deploy a solution according to the solution manifest :

    - If in the solution manifest, the assembly's attribute DeployementTarget="GlobalAssemblyCache", SharePoint will not ask you for the web application.
    - If the attribute DeployementTarget="WebApplication", SharePoint will ask you for the web application to which the solution will be deployed.
    - If the attribute DeployementTarget="GlobalAssemblyCache" and SafeControls are needed for the assembly, especially for web parts, SharePoint will ask for the we application, because the safe controls are added to the web.config of the web application.

    To see the solution manifest, change the extension of your solution file from .wsp to .cab e.g. Mysolution.wsp to Mysolution.cab. Then use windows explorer to open the file and extract the file Manifest.xml.

    Hope this helps,

    Regards,

    Djamel Chagour

    http://spbyexamples.blogspot.com/
    Saturday, December 24, 2011 5:37 AM
  • Check the below link

    http://www.fewlines4biju.com/2012/05/this-solution-contains-no-resources.html


    Thanks Bijay | @Fewlines4Biju | LinkedIn | FaceBook | My Blog | SharePointDotNet.com | EnjoySharePoint.com

    Thursday, May 10, 2012 7:46 AM