Unable to Install profiler through Plugin Registration Tool Dynamics365

I was having an issue trying to install profiler through Plugin Registration Tool. I was able do all actions on plugins from registration to disabling them.  I was using Microsoft Dynamics® CRM 2016/D365 (8.2.2.112) (DB 8.2.2.112) On-premises, and Registration tool version is 8.2.1.8676 64bit.

What I have tried: I tried tp install profiler in a Dev environment, and a sandbox environment this did not work. I tried to install it on the DEV instance running plugins and still  the same issue.

NOTE: This issue was happening evening though l was a system administrator and deployment admin.

Error Log:

Unhandled Exception: System.Exception: Solution Import Failed: 31 Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Access is denied.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
  <ErrorCode>-2147187707</ErrorCode>
  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
  <Message>Access is denied.</Message>
  <Timestamp>2018-01-12T13:53:01.8969526Z</Timestamp>
  <InnerFault>
    <ErrorCode>-2147187707</ErrorCode>
    <ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
    <Message>Access is denied.</Message>
    <Timestamp>2018-01-12T13:53:01.8969526Z</Timestamp>
    <InnerFault>
      <ErrorCode>-2147220970</ErrorCode>
      <ErrorDetails xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
      <Message>System.UnauthorizedAccessException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #D6978376</Message>
      <Timestamp>2018-01-12T13:53:01.8969526Z</Timestamp>
      <InnerFault i:nil="true" />
      <TraceText i:nil="true" />
    </InnerFault>
    <TraceText i:nil="true" />
  </InnerFault>
  <TraceText i:nil="true" />
</OrganizationServiceFault>
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext)
   at Microsoft.Crm.Extensibility.InprocessServiceProxy.ExecuteCore(OrganizationRequest request)
   at Microsoft.Crm.Asynchronous.ExecuteSdkMessageOperation.InternalExecute(AsyncEvent asyncEvent)
   at PluginProfiler.Library.ProfilerManagementUtility.ImportSolutionAsyncAndWait(CrmServiceClient service, String prtpath, Boolean publishWorkflows, Boolean overwriteUnmanagedCustomizations, Int32 sleepInterval, Int32 asyncWaitTimeout)
   at PluginProfiler.Library.ProfilerManagementUtility.RetrieveOrCreateProfilerPluginType(CrmServiceClient service, String prtpath)
   at Microsoft.Crm.Tools.Libraries.OrganizationHelper.InstallProfiler(CrmOrganization org, String prtPath)
   at Microsoft.Crm.Tools.PluginRegistration.OrganizationControlViewModel.<>c__DisplayClass27

Solution

What worked in this instance was  Installing Plugin profiler zip file as a Dynamics CRM Solution. You will see a .zip file with name "PluginProfiler.Solution.zip" for plugin profiler. If you import it, this will be the solution to the issue.

Comments

  1. The great service in this blog and the nice technology is visible in this blog. I am really very happy for the nice approach is visible in this blog and thank you very much for using the nice technology in this blog
    CRM with Invoicing

    ReplyDelete

Post a Comment

Popular posts from this blog

How to Query Microsoft Dataverse Data using SQL from Power BI or SSMS

How To Deploy Dynamics App For Outlook (On-Premise)

Dynamics 365 (on-premises), version 8.2 upgrade/import to v9.0.2 Failure