Issue with custom timer job
Hi, I tried creating a custom timer job. I was able to successfully install it, but when i tried to activate i get this error. Pls help. ----------------------------------------------------------------------------------------- Feature 'b82f3a7a-265c-4c8e-9d2c-c8d608839381' could not be installed because the loading of event receiver assembly "MyTimer.SharePointWarmupJob, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b76170ec13688df8" failed: System.IO.FileNotFoundException: Could not load file or assembly 'MyTimer.SharePointWarmupJob, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b76170ec13688df8' or one of its dependencies. The system cannot find the file specified. File name: 'MyTimer.SharePointWarmupJob, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b76170ec13688df8' at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.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]. -----------------------------------------------------------------------------------------
May 16th, 2011 2:57pm

Hi Nagarajan, Thanks for posting here. Debug your code and know where error is throwing first.Thanks & Regards, Neerubee
Free Windows Admin Tool Kit Click here and download it now
May 17th, 2011 1:48am

Neerubee, I have commented all major lines of code and tried to activate. I still get this error. I feel some references or some configuration is missing. Can someone share your piece of code ?
May 17th, 2011 1:00pm

Hi, According to your description, I have found an issue with “Could not load file or assembly “ , please have a try to resolve the issue by following steps: 1. Click the reference in Visual Studio Solution Explore. 2. In the properties windows at the button, change Copy Local to True. 3. Deployed the solution. Now, adding the two assemblies to the GAC earlier may have contributed to the resolution as well. Best Regards David Hu
Free Windows Admin Tool Kit Click here and download it now
May 17th, 2011 9:46pm

Hi, According to your description, I have found an issue with “Could not load file or assembly “ , please have a try to resolve the issue by following steps: 1. Click the reference in Visual Studio Solution Explore. 2. In the properties windows at the button, change Copy Local to True. 3. Deployed the solution. Now, adding the two assemblies to the GAC earlier may have contributed to the resolution as well. Best Regards David Hu
May 17th, 2011 9:46pm

I fixed this. Issue was in the references mentioned in feature.xml.
Free Windows Admin Tool Kit Click here and download it now
May 18th, 2011 11:35am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics