Posted by: Nishant Rana | June 10, 2008

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly ‘Microsoft.Crm.Sdk….’

I created a simple plugin and when I was trying to register the plugin through the plugin registration tool I was getting the follwing error

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly ‘Microsoft.Crm.Sdk, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35′ or one of its dependencies. The system cannot find the file specified.

at System.Reflection.Assembly._GetExportedTypes()

at System.Reflection.Assembly.GetExportedTypes()

at PluginRegistrationTool.AssemblyReader.RetrievePluginsFromAssembly(String path) in C:\Documents and Settings\arvinds1\Desktop\PluginRegistration\AssemblyReader.cs:line 59

at PluginRegistrationTool.AssemblyReader.RetrievePluginsFromAssembly(String path)

at PluginRegistrationTool.RegistrationHelper.RetrievePluginsFromAssembly(String pathToAssembly) in C:\Documents and Settings\arvinds1\Desktop\PluginRegistration\RegistrationHelper.cs:line 49

at PluginRegistrationTool.PluginRegistrationForm.btnLoadAssembly_Click(Object sender, EventArgs e) in C:\Documents and Settings\arvinds1\Desktop\PluginRegistration\PluginRegistrationForm.cs:line 127

 

The way I resolved the issue was by adding the microsoft.crm.sdk.dll to my machine’s GAC !!

I hope it works for others as well !!!


Responses

  1. Worked perfectly. Thanks

  2. worked for me too, thanks a lot..

  3. worked for me as well :)

  4. The solution is to copy the Microsoft.Crm.Sdk.dll file to Plugin Registration Tool.exe folder. The Microsoft.Crm.Sdk.dll file must reside in the same folder as the executable file.

  5. Brilliant!!! thank you

  6. It is not working for me,

    ——————————————————————————–

    Could not load file or assembly ‘Microsoft.Crm.Application.Components.Strings’ or one of its dependencies. The system cannot find the file specified.

  7. ——————————————————————————–

    Could not load file or assembly ‘Microsoft.Crm.Application.Components.Strings’ or one of its dependencies. The system cannot find the file specified.


Leave a response

Your response:

Categories