locked
Plugin Registration Fails for Destination Disk RRS feed

  • Question

  • I am trying to register a plugin that previously was registered in the Database and where I had no problem updating it. I now unregistered it and tried to register it again on Disk. However, I am getting the error

    There was an error while registering the selected plugins. Please check the Registration Log for more information.

    The details are listed below. I have tried an iisreset and even reboot the computer but it still fails. This is with Plugin Registration Tool version 2.1.0.1. I checked the c:\program files\Microsoft Dynamics CRM\server\bin\assembly directory which is empty. Please note that I am using ILMerge but I assume this should not have any influence as it worked just fine with Database. Also I have some other plugins registered to the database assuming that I can have a different destination for each plugin.

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, 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">
      <ErrorCode>-2147204719</ErrorCode>
      <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
      <Message>Unable to load plug-in assembly.</Message>
      <Timestamp>2013-01-23T07:34:45.826Z</Timestamp>
      <InnerFault>
        <ErrorCode>-2147204719</ErrorCode>
        <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
        <Message>Unable to load plug-in assembly.</Message>
        <Timestamp>2013-01-23T07:34:45.827Z</Timestamp>
        <InnerFault i:nil="true" />
        <TraceText i:nil="true" />
      </InnerFault>
      <TraceText i:nil="true" />
    </OrganizationServiceFault>

    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.Create(Entity entity)
       at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.CreateCore(Entity entity)
       at PluginRegistrationTool.RegistrationHelper.RegisterAssembly(CrmOrganization org, String pathToAssembly, CrmPluginAssembly assembly) in C:\Code\sdk\tools\pluginregistration\RegistrationHelper.cs:line 227
       at PluginRegistrationTool.PluginRegistrationForm.btnRegister_Click(Object sender, EventArgs e) in C:\Code\sdk\tools\pluginregistration\PluginRegistrationForm.cs:line 452

    Wednesday, January 23, 2013 7:44 AM

Answers

  • Never mind, after spending a good amount of time I now found the solution. I need to copy the files manually to the assembly directory. This is different compared to a deployment to a database where the tool is handling deploying the actual file.
    Wednesday, January 23, 2013 7:49 AM

All replies

  • Never mind, after spending a good amount of time I now found the solution. I need to copy the files manually to the assembly directory. This is different compared to a deployment to a database where the tool is handling deploying the actual file.
    Wednesday, January 23, 2013 7:49 AM
  • Hi Faun,

    If you register your plugin in "Disk" mode you need need to paste your Plugin assembly dll and pdb  in "C:\Program Files\Microsoft Dynamics CRM\Server\bin\assembly".

    If you register in DB mode no need to place the dll and pdb file.

    Happy Coding.


    Warm Regards, Suresh Kumar D

    Wednesday, January 23, 2013 8:03 AM