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.
-----------------------
Here are some solutions
1. 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
2. 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.
3. 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:
Hope this will help some techies!
-----------------------
Here are some solutions
1. 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
2. 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.
3. 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 will help some techies!
No comments:
Post a Comment