Thursday, May 12, 2011

Problems when connecting PluginRegistration Tool to CRM

I was going to deploy some plugins to a server today and when I tried to connect to the CRM with the PlugingRegistration.exe I found got the following error:

Unhandled Exception: System.ServiceModel.FaultException: The server was unable to process the request due to an internal error.

So I switched on the tracing in CRM and read the following from the trace log (edited):

System.IO.FileNotFoundException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Could not load file or assembly 'Microsoft.Xrm.Client, Version=5.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

The error seems to originate from CRM not being able to find the Microsoft.Xrm.Client.dll file. After some fiddeling, I fixed it by copying the file from the SDK\bin directory to CRMWeb\bin directory. It is a bit strange that it is required that you do this, and it will probably be fixed in future rollups of CRM 2011.

By the way, I heard some rumors from the CRM Statement of Direction that CRM 6 will be released Q2 2012 and that it will have multibrowser support. The feature we have all been waiting for, and it is probably going to be more or less the same thing as the 2011 version but with multibrowser support. So Software Assurance will probably be a good idea this year for Microsoft Dynamics CRM.

Gustaf Westerlund
CEO, Chief Architect and co-Founder at CRM-konsulterna AB
www.crmkonsulterna.se

2 comments:

  1. Hi,

    I have pratically the same problem but i working on dynamics crm 2011 online version.

    I'm trying to resolve my problem by using your solution but nothing happens;

    So i would like to know how can i do?

    Moreover i haven't found CRMWeb\bin folder?

    Please help me!

    Sincerely yours

    ReplyDelete
  2. Hi Gaspard,
    When working with CRM Online you cannot access the online CRMWeb-directory, so there is no way to change it.

    Make sure that PluginRegistrator.exe has access to Mirosoft.Xrm.Client.dll. Easiest way is to place the dll in the same directory.

    Gustaf

    ReplyDelete