locked
Timer Job in SharePoint 2010 RRS feed

  • Question

  • I have implemented an relatively simple Timer Job for my SharePoint Foundation 2010 server. I have signed the DLL and installed it in the GAC. And I created a simple console app to install it, just for testing purposes for now. The Timer Job installs fine, I can navigate to it and see the Job in the Admin Interface, Job Definitions. But, when I try and run the Job, it fails because it cannot find the assembly. Error is:

    The type ProposalManagerJobs.EmailAlertJob, ProposalManagerJobs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=76571cdaf785729e (Id = 30316574-c06e-3517-abbd-460c3ee38643) could not be located in any loaded assembly. 
    Cannot find the type assembly  ProposalManagerJobs. 
    The type ProposalManagerJobs.EmailAlertJob, ProposalManagerJobs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=76571cdaf785729e could not be found in its specified assembly.  Scanning all assemblies that have been loaded in the current app domain. 
    The type ProposalManagerJobs.EmailAlertJob, ProposalManagerJobs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=76571cdaf785729e (Id = 30316574-c06e-3517-abbd-460c3ee38643) could not be located in any loaded assembly. 
    SharePoint cannot deserialize an object of type ProposalManagerJobs.EmailAlertJob, ProposalManagerJobs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=76571cdaf785729e on this machine.  This typically occurs because the assembly containing this type is not installed on this machine.  In this case, this message can be safely ignored.  Otherwise, the assembly needs to be installed on this machine in a location that can be discovered by the .NET Framework. 

    Things I've checked:

    • The DLL is signed
    • It is in the GAC
    • The PublicKeyToken is correct (although when I installed it, there was no mention of PKT so not sure how the connection to the DLL in the GAC would be made)

    Thanks for any input on this issue.

     

     

    Wednesday, July 7, 2010 5:39 PM

Answers

All replies

  • Did you ever resolve this? I am getting the same error message.
    SharePoint Solution Architect, Perth Australia - Microsoft Virtual Technology Specialist - MCTS WSS Dev, WSS Adm, MOSS Dev, MOSS Adm - http://wss.made4the.net/ - Founder of http://www.sharepointdevwiki.com/
    Monday, July 26, 2010 1:10 PM
  • Not that I intentionally want to dredge up older posts, but has anyone else managed to find a solution for this?

    I'm getting the same error and not much can be found on this topic/

    Monday, January 17, 2011 10:55 AM
  • I also have the same issue. Looking into it now. It's weird, seeing as I have another custom timer job running on the side which does not cause any problems.
    Tuesday, April 5, 2011 1:44 PM
  • A good gentleman at Stack Overflow was able to resolve the question for me. The error messages noted above might actually be irrelevant to the problem; my problem was that the SharePoint timer service had to be restarted after deploying the solution:

    net stop sptimerv4
    net start sptimerv4

    http://sharepoint.stackexchange.com/questions/11043/class-not-found-in-assembly-when-deploying-custom-timer-job

    Tuesday, April 12, 2011 8:11 AM
  • Allthough no one has marked this as the answer, the post by Gier Smestad did the trick for me. Thank you!
    Wednesday, August 17, 2011 1:10 PM
  • Thanks a lot man! This saved me few hours of my life. :)
    Monday, February 27, 2012 7:46 PM