Answered by:
Unhandled Exception while register plugin in crm 2011 ?

Question
-
Hi,
I have upgrade crm 4.0 to crm 2011 after that i want to move my plugin also...for that i have copied my plugin from 4.0 and pasted in crm 2011 environment. After that i have successfully build my plugin.
then i open plugin registration tool to register but its showing below error when i load....
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Crm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at PluginRegistrationTool.AssemblyReader.RetrievePluginsFromAssembly(String path) in C:\CRM Tools\sdk\tools\pluginregistration\AssemblyReader.cs:line 134
at PluginRegistrationTool.AssemblyReader.RetrievePluginsFromAssembly(String path)
at PluginRegistrationTool.RegistrationHelper.RetrievePluginsFromAssembly(String pathToAssembly) in C:\CRM Tools\sdk\tools\pluginregistration\RegistrationHelper.cs:line 42
at PluginRegistrationTool.PluginRegistrationForm.btnLoadAssembly_Click(Object sender, EventArgs e) in C:\CRM Tools\sdk\tools\pluginregistration\PluginRegistrationForm.cs:line 158Please suggest ....
Thursday, August 25, 2011 6:35 AM
Answers
-
Hi,
You may try the solution mentioned in the following post: http://worldofdynamics.blogspot.com/2011/08/dynamics-crm-2011-registering-crm-40.html
Jehanzeb Javeed
http://worldofdynamics.blogspot.com
Linked-In Profile |CodePlex Profile
If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".- Proposed as answer by Jehanzeb.Javeed Thursday, August 25, 2011 5:34 PM
- Marked as answer by P_Mundra Friday, July 27, 2012 3:25 AM
Thursday, August 25, 2011 5:34 PM
All replies
-
Have a look at this mate.
http://mscrmuk.blogspot.com/2011/02/using-crm-40-assemblies-on-crm-2011.html
I hope this helps.
Amreek singh Senior CRM Consultant CDC Praxa Sydney,Australia http://mscrmshop.blogspot.com/- Proposed as answer by Amreek Singh Thursday, August 25, 2011 6:50 AM
Thursday, August 25, 2011 6:50 AM -
Not Working :( Any other solutions??
Is there any tool available to convert crm 4.0 plug in code to crm 2011 code ??
Thursday, August 25, 2011 9:01 AM -
Make sure you are registering on database and that your assembly does not reference other external assemblies.
Gonzalo | gonzaloruizcrm.blogspot.com
Thursday, August 25, 2011 12:45 PMModerator -
Hi,
You may try the solution mentioned in the following post: http://worldofdynamics.blogspot.com/2011/08/dynamics-crm-2011-registering-crm-40.html
Jehanzeb Javeed
http://worldofdynamics.blogspot.com
Linked-In Profile |CodePlex Profile
If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".- Proposed as answer by Jehanzeb.Javeed Thursday, August 25, 2011 5:34 PM
- Marked as answer by P_Mundra Friday, July 27, 2012 3:25 AM
Thursday, August 25, 2011 5:34 PM