Assembly Microsoft.Dynamics.Service.Plugins.dll can not be loaded. Dynamics CRM 365 Engine version 9 - CRM User creation error


If You face an error while adding new user to the Dynamics CRM 365 onpremise for Version 9.0 stating that
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Assembly Microsoft.Dynamics.Service.Plugins.dll can not be loaded.

   <d2p1:value xmlns:d4p1="" i:type="d4p1:string">Microsoft.Crm.CrmException: Assembly Microsoft.Dynamics.Service.Plugins.dll can not be loaded. ---&gt; Microsoft.Crm.CrmException: Assembly Microsoft.Dynamics.Service.Plugins.dll can not be loaded. ---&gt; System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Program Files\Microsoft Dynamics CRM\server\bin\assembly\Microsoft.Dynamics.Service.Plugins.dll' or one of its dependencies. Access is denied.

It is about missing permission of assembly folder under <Dynamics CRM main folder>\bin.

Dynamics CRM 9.0 engine comes with 14 libraries under "C:\Program Files\Microsoft Dynamics CRM\Server\bin\assembly"

so CRM Service account should have access rights to the libraries.

How to Fix:

We should set necessary permission of the Crm App Pool for the "C:\Program Files\Microsoft Dynamics CRM\Server\bin" and enable inheritence for "C:\Program Files\Microsoft Dynamics CRM\Server\bin\assembly" folder in order to reflect "bin" permissions underneath.

  • find service account of the Crm Application Pool from IIS

  • Right click to the assembly folder then click properties and go to Security tab and finally click Advanced.
  • Click "Enable Inheritence" and check "Replace all child object permission entries with inheritable permission entries from this object" after Apply and Ok

  • Add Crm App Pool account to the bin folder and set full access.

  • Finally IISreset 
Good luck...


  1. Worked for me thanks - saved me lots of time.

    1. what a good feeling to help you. Please spend "saved time" with your friends, family, relatives :)

  2. Thank you somuch


Post a Comment

Popular posts from this blog

Complex Query in QueryExpression in Microsoft CRM 2011

Exception caught instantiating TERADATA report server extension SQL Reporting Services

Operation Type for [MSCRM_CONFIG].[dbo].[ScaleGroupOrganizationMaintenanceJobs] - Dynamics CRM 2016 Asynchronous Service task (Maintenance)