Answered by:
CRM 2013 SP1 - How to re-generate the plug-in code from CRM database?

Question
-
Hello everyone,
How to re-generate the plug-in code from CRM database?
Any help would be much appreciated.
Thanks, <b>Ankit Shah</b> <hr> Inkey Solutions, India. <hr> Microsoft Certified Business Management Solutions Professionals <hr> http://ankit.inkeysolutions.com
- Edited by Ankit Himmatlal Shah Tuesday, July 28, 2015 7:38 AM
Tuesday, July 28, 2015 7:38 AM
Answers
-
Actually, it was my mistake.
I was not considering the other dlls, which are referred by Plug-in projects while decompiling the code. After referring them, now I can see errorless buildable code.
Thanks, <b>Ankit Shah</b> <hr> Inkey Solutions, India. <hr> Microsoft Certified Business Management Solutions Professionals <hr> http://ankit.inkeysolutions.com
- Marked as answer by Ankit Himmatlal Shah Tuesday, August 4, 2015 5:51 AM
Tuesday, August 4, 2015 5:51 AM
All replies
-
Ankit,
Did you check this: http://nishantrana.me/2011/01/17/get-the-plugin-assembly-stored-in-database-in-crm/
Microsoft Dynamics CRM Training |Our Blog | Follow US | Our Facebook Page | Microsoft Dynamics CRM 2011 Application Design
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.- Proposed as answer by Andrii ButenkoMVP, Moderator Tuesday, July 28, 2015 8:38 AM
Tuesday, July 28, 2015 7:43 AMModerator -
Hi,
Sorry for not mentioning this in my earlier post,
We've already recovered the dll using plugin recovery tool of XRM Toolbox.
The we've decompiled it using .Net reflector, but I doubt it has recovered it accurately here. There are so many errors when we compile it.
Any better too that helps us in recompile the code accurately.
Thanks, <b>Ankit Shah</b> <hr> Inkey Solutions, India. <hr> Microsoft Certified Business Management Solutions Professionals <hr> http://ankit.inkeysolutions.com
- Edited by Ankit Himmatlal Shah Tuesday, July 28, 2015 7:58 AM
Tuesday, July 28, 2015 7:58 AM -
Ankit,
I believe that you will have to go through code you've got after decompilation and fix all the errors. There is no other way of completing your goal.
Dynamics CRM MVP
My blog- Proposed as answer by Andrii ButenkoMVP, Moderator Tuesday, July 28, 2015 8:38 AM
Tuesday, July 28, 2015 8:38 AMModerator -
The errors may be a consequence of the decompiler, but another possible reason for compilation errors is if you don't have references to the correct versions of any dependent assemblies
Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk
Tuesday, July 28, 2015 11:07 AMModerator -
Actually, it was my mistake.
I was not considering the other dlls, which are referred by Plug-in projects while decompiling the code. After referring them, now I can see errorless buildable code.
Thanks, <b>Ankit Shah</b> <hr> Inkey Solutions, India. <hr> Microsoft Certified Business Management Solutions Professionals <hr> http://ankit.inkeysolutions.com
- Marked as answer by Ankit Himmatlal Shah Tuesday, August 4, 2015 5:51 AM
Tuesday, August 4, 2015 5:51 AM