CRM 2011 – Assembly must be registered in isolation

Here’s an interesting one! We recently used the Plugin Registration Tool to register a plug-in assembly with a Dynamics CRM 2011 on-premise deployment and received the following error:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Action failed for assembly ‘Roscode.Plugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d1d66274f9925088’: Assembly must be registered in isolation.
Detail:
-2147220906

Action failed for assembly ‘Roscode.Plugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d1d66274f9925088’: Assembly must be registered in isolation.
2013-02-27T01:34:18.9471327Z

-2147220906

Action failed for assembly ‘Roscode.Plugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d1d66274f9925088’: Assembly must be registered in isolation.
2013-02-27T01:34:18.9471327Z

Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Xrm.Sdk.IOrganizationService.Update(Entity entity)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.UpdateCore(Entity entity)
at PluginRegistrationTool.RegistrationHelper.UpdateAssembly(CrmOrganization org, String pathToAssembly, CrmPluginAssembly assembly, PluginType[] type) in D:\Documents\CRM 2011 SDK\tools\pluginregistration\RegistrationHelper.cs:line 263
at PluginRegistrationTool.PluginRegistrationForm.btnRegister_Click(Object sender, EventArgs e) in D:\Documents\CRM 2011 SDK\tools\pluginregistration\PluginRegistrationForm.cs:line 382

Note that this error has nothing to do with registering the plug-in in isolation mode. It’s CRM’s funny way of telling you that you are not a Deployment Administrator. All you need to do is get another CRM administrator to add your user account to the list of Deployment Administrators within the Deployment Manager.

Hope this helps!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s