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 !!!
Worked perfectly. Thanks
By: Josh Yockey on October 17, 2008
at 6:30 pm
worked for me too, thanks a lot..
By: rajesh on January 13, 2009
at 11:26 am
worked for me as well :)
By: sohaib ahmad on January 26, 2009
at 6:16 am
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.
By: mthulisi on February 19, 2009
at 12:16 pm
Brilliant!!! thank you
By: Bassam on February 19, 2009
at 7:42 pm
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.
By: Nallaperumal on June 16, 2009
at 6:14 am
——————————————————————————–
Could not load file or assembly ‘Microsoft.Crm.Application.Components.Strings’ or one of its dependencies. The system cannot find the file specified.
By: Nallaperumal on June 16, 2009
at 6:15 am