web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Plugin: Does anybody knows if is possible to take a DLL from CRM once registered?

(1) ShareShare
ReportReport
Posted on by

Hello friend,

Can anybody tell me if is possible to take a registered DLL? The thing is that sometimes you had registered a DLL that is working properly but you make some changes in the code and finally you realize that the code doesn't work. It could be great, if you could take the current DLL as backup and registered the new one without concerns.

Thank you very much,

Greetings.

*This post is locked for comments

I have the same question (0)
  • Moshe Hayun Profile Picture
    365 on at
    RE: Plugin: Does anybody knows if is possible to take a DLL from CRM once registered?

    Best answer Kyle. Thanks

  • Suggested answer
    Jitendra Sahu Profile Picture
    2 on at
    RE: Plugin: Does anybody knows if is possible to take a DLL from CRM once registered?

    If you are running with GAC or Disc deployment then you may find it under assembly area where your CRM is deployed

    Sample path:

    C:\Program Files\Microsoft Dynamics CRM\Server\bin\assembly

    If you are running with Database deployment then you may get this Dll as part of your entity within your solution. You can export your solution as un-managed and will find your plugin dll inside PlugIn/Assembly directory.

    Or follow Aiden Kaskela's suggestion

  • Suggested answer
    kyleknab Profile Picture
    517 on at
    RE: Plugin: Does anybody knows if is possible to take a DLL from CRM once registered?

    The free xrmtoolbox has an "Assembly Recovery Tool" that lets you export plugin assemblies and custom workflow activity assemblies.

    http://www.xrmtoolbox.com/

  • Suggested answer
    Aiden Kaskela Profile Picture
    19,696 on at
    RE: Plugin: Does anybody knows if is possible to take a DLL from CRM once registered?

    Hi  Ken,

    You can download an existing plugin through code, not via the browser.

    You want to query for the "pluginassembly" entity, that will have all the dlls that are registered. The "name" field is the name of the assembly so you'll check that to make sure you have what you want.

    To download the assembly, you'd download it the same way you would an attachment on a note:

    // check for null on the content attribute, then....
    byte[] theAssemblyData = Convert.FromBase64String(record.Attributes["content"].ToString[]);
    
    // Write it to the hard drive if you want
    File.WriteAllBytes(thePath, theAssemblyData);


    Hope this helps! I'd appreciate if you'd mark this as Answering your question.

    Thanks,

      Aiden

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans