Tuesday, March 8, 2011

Assembly must be registered in isolation

While attempting to register plug-ins on our new CRM2011 box today, I ran into this error message, "Assembly must be registered in isolation." This was driving me nuts -- I could register in the Sandbox without issue, but I needed access to system Mutexes and data logs on the hard drive which are unavailable in Sandbox.

This ended up being a simple fix -- I needed to add my user to the "Deployment Managers" group, in addition to the System Administrator group he was already in. With that done, registering went off without a hitch!

2 comments:

  1. But what if this problem happens in CRM online?

    ReplyDelete
  2. Unfortunately, all plug-ins must be registered in sandbox mode in CRM Online for security reasons. This means we can't do mutexing at all, so alternate solutions are needed (such as random thread-sleeping between pre/post validation on unique identifiers). This may be changing in RU8 - apparently custom workflow assemblies are going to be supported, so perhaps we can hope for a fully trusted code environment as well!

    ReplyDelete