When I'm deploying a Sharepoint Project from Visual Studio to my Sharepoint site, I met this error:
Error 3 Error occurred in deployment step 'Activate Features': Failed to load receiver assembly "ABCDEF, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9a5a0fd37c05f19f" for feature "IEx.AboutIE" (ID: d24ee7c1-d532-47e4-bd41-76754cf61e11).: System.IO.FileNotFoundException: Could not load file or assembly 'ABCDEF, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9a5a0fd37c05f19f' or one of its dependencies. The system cannot find the file specified. File name: 'ABCDEF, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9a5a0fd37c05f19f' 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].
I found out a solution to solve this problem. I added a new key.snk
, replaced the old one in my project, and everything worked very well. But, after a while, I met this error again. All I can do was add a new key.snk
again, and again, and again ... This solution was just a temporary solution.
What is the cause of this problem? How can I solve it permanently?