none
Error occurred in deployment step 'Activate Features RRS feed

  • Question

  • Hi all,

       I am facing an issue while deploying timer job in sharepoint.Error is 

    Error 5 Error occurred in deployment step 'Activate Features': Failed to load receiver assembly "AkzoNobel_TimerJobs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=950c12693dd84d37" for feature "AkzoNobel_TimerJobs_ROI_EscalationEmail" (ID: 24ecbbbb-9bd0-4b63-a090-7a47d0a96b61).: System.IO.FileNotFoundException: Could not load file or assembly 'AkzoNobel_TimerJobs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=950c12693dd84d37' or one of its dependencies. The system cannot find the file specified.
    File name: 'AkzoNobel_TimerJobs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=950c12693dd84d37'
       at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
       at System.Reflection.Assembly.Load(String assemblyString)
       at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject()

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    0 0 AkzoNobel_TimerJobs

    Regards

    VeerendraNadh

    Monday, December 30, 2013 9:31 AM

Answers

  • Check your WSP to make sure the assembly is being deployed to the GAC and not the Web Application bin directory.  Timer Jobs must be deployed to the GAC.

    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

    Monday, December 30, 2013 1:01 PM

All replies

  • Check your WSP to make sure the assembly is being deployed to the GAC and not the Web Application bin directory.  Timer Jobs must be deployed to the GAC.

    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

    Monday, December 30, 2013 1:01 PM
  • Remove feature assembly and feature receiver from Feature properties.

    Try deploy.

    • Proposed as answer by Marek Fronk Monday, March 20, 2017 3:42 PM
    Tuesday, April 29, 2014 9:00 AM