Saturday, November 7, 2009

Configuration for Offline Client Plugins

If you received an error "Unable to load plug-in assembly." when triggering the plug-in under offline client mode, please configure the following steps:

  • Open Plug-in Registration Tool
  • Copy Public Key Token value under Assembly Information Section

  • Open registry in offline client computer
  • Create sub key folder with Public Key Token value under HKCU\Software\Microsoft\MSCRM Client\AllowList folder (E.g. 43820d73570614d5 here in current scenario)

Make sure you configure your plug-in executing context as “Calling User”. Please take note that Offline client application can be run under single user who is register to that computer.

For faster and easier installation, copy following quoted lines into a text file and change file extension to .reg file. You need to replace yellow color text with relevant values. Double click and install registry values on Offline client laptops. You can also put multiple public key tokens in one registry file.
Windows Registry Editor Version 5.00

;(Plugin) YourPluginNamespace.PluginClassName

;(Plugin) YourPluginNamespace.PluginClassName

Download Link:
Sample File


Markus Erlandsson said...


This stopped my plugin complaining about "failed to load plugin assembly", but why is it needed?

Do you know any way to debug offline plugins?

Thuta said...

Hi Markus,

I saw Offline Plug-in Security on MSDN. I am not sure whether this article will helpful to you.

I think the way Microsoft implement is a very troublesome for us since we need to create registry keys in each and every laptop that need to run offline client.

For debugging offline client, I still don't know how to do that. Thanks.

boopesh said...

HI i followed the steps mentioned here but still it displays the same error and in log file it clearly says that "dfdfdfdfdfd" key is missing in the allowlist. please guide me
Boopesh Babu

boopesh said...

sorry guys it worked perfectly after restarting the server.. great work thanks

Amar Prakash said...

Please follow the below link for debugging offline client plugin

Post a Comment