Unable to load plug-in assembly error with CRM Online RRS feed

  • Question

  • Hi All, for some time now our project team has been getting "Unable to load plug-in assembly" errors intermittently when registering plugins via the plugin registration tool to CRM Online. Has anyone got suggestions on the cause and the fix to this error? The full stack trace is below. 

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Unable to load plug-in assembly.

    Detail: <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
    <Message>Unable to load plug-in assembly.</Message>
    <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
    <Message>Unable to load plug-in assembly.</Message>
    <InnerFault i:nil="true" />
    <TraceText i:nil="true" />
    <TraceText i:nil="true" />

    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 Microsoft.Crm.Tools.Libraries.RegistrationHelper.UpdateAssembly(CrmOrganization org, String pathToAssembly, CrmPluginAssembly assembly, PluginType[] type)
    at Microsoft.Crm.Tools.AssemblyRegistration.PluginRegistrationViewModel.btnregisterClick()

    Wednesday, December 2, 2015 2:37 AM

All replies

  • Hey Dean,

    Any luck so far? :D

    Monday, December 14, 2015 3:46 AM
  • Are there any patterns to the intermittent errors - for example do they apply for particular users, or particular plugins, or whether it's a new or updated registration ?

    What versions do you have of:

    • The plugin registration tool
    • Crm Online (2015, 2015 Update 1, or 2016)
    • The CRM assemblies referenced by your plugin

    The error references Microsoft.Xrm.Sdk, Version=, which is CRM 2015. The various versions should be compatible with each other, but if you can I'd recommend using the same CRM version for all 3 of the components above

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Monday, December 14, 2015 10:25 AM
  • maybe the dll you are trying to register is blocked and you need to unblock first?

    check this screenshot for the option I'm talking about

    My blog: www.crmanswers.net - CRM Theme Generator

    Monday, December 14, 2015 10:41 AM
  • Let us know if any of the below suggestions corrected the issue or pointed you in the right direction.  If not, open a ticket with Microsoft Support since this is related to CRM Online and let us know if they are able to provide a resolution.

    Regards, Donna

    Monday, December 28, 2015 5:45 PM