Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Error with plugin profiler : System.TypeLoadException: Method 'get_UserAzureActiveDirectoryObjectId'

Posted on by 420
Anyone knows how to fix this?

Exception Details Unhandled exception: Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault] Message: System.TypeLoadException: Method 'get_UserAzureActiveDirectoryObjectId' in type 'PluginProfiler.Plugins.ServiceWrappers.PluginExecutionContextWrapper' from assembly 'PluginProfiler.Plugins, Version=7.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation. at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type) at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.Execute(IOrganizationServiceFactory organizationServiceFactory, Dictionary`2 sandboxServices, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, IPluginExecutionContext requestContext, Boolean enablePluginStackTrace, Boolean chaosFailAppDomain, String crashOnPluginExceptionMessage) at Microsoft.Crm.Sandbox.SandboxWorker.<>c__DisplayClass3_0.<Execute>b__0(): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #C25B5F9ADetail: <OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts"> <ActivityId>4c99b1b6-32da-4793-8a92-6af964740970</ActivityId> <ErrorCode>-2147220970</ErrorCode> <ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic" /> <HelpLink i:nil="true" /> <Message>System.TypeLoadException: Method 'get_UserAzureActiveDirectoryObjectId' in type 'PluginProfiler.Plugins.ServiceWrappers.PluginExecutionContextWrapper' from assembly 'PluginProfiler.Plugins, Version=7.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation. at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type) at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.Execute(IOrganizationServiceFactory organizationServiceFactory, Dictionary`2 sandboxServices, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, IPluginExecutionContext requestContext, Boolean enablePluginStackTrace, Boolean chaosFailAppDomain, String crashOnPluginExceptionMessage) at Microsoft.Crm.Sandbox.SandboxWorker.&lt;&gt;c__DisplayClass3_0.&lt;Execute&gt;b__0(): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #C25B5F9A</Message> <Timestamp>2019-11-12T15:04:12.6747099Z</Timestamp> <ExceptionRetriable>false</ExceptionRetriable> <ExceptionSource>PluginExecution</ExceptionSource> <InnerFault i:nil="true" /> <OriginalException>System.TypeLoadException at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type) at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.Execute(IOrganizationServiceFactory organizationServiceFactory, Dictionary`2 sandboxServices, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, IPluginExecutionContext requestContext, Boolean enablePluginStackTrace, Boolean chaosFailAppDomain, String crashOnPluginExceptionMessage) at Microsoft.Crm.Sandbox.SandboxWorker.&lt;&gt;c__DisplayClass3_0.&lt;Execute&gt;b__0()</OriginalException> <TraceText i:nil="true" /> </OrganizationServiceFault> Exception Details-Details of the exception.
Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: System.TypeLoadException: Method 'get_UserAzureActiveDirectoryObjectId' in type 'PluginProfiler.Plugins.ServiceWrappers.PluginExecutionContextWrapper' from assembly 'PluginProfiler.Plugins, Version=7.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.
at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)
at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.Execute(IOrganizationServiceFactory organizationServiceFactory, Dictionary`2 sandboxServices, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, IPluginExecutionContext requestContext, Boolean enablePluginStackTrace, Boolean chaosFailAppDomain, String crashOnPluginExceptionMessage)
at Microsoft.Crm.Sandbox.SandboxWorker.<>c__DisplayClass3_0.<Execute>b__0(): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #C25B5F9ADetail:
<OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts">
<ActivityId>4c99b1b6-32da-4793-8a92-6af964740970</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic" />
<HelpLink i:nil="true" />
  • Suggested answer
    Mike_McG Profile Picture
    Mike_McG 10 on at
    RE: Error with plugin profiler : System.TypeLoadException: Method 'get_UserAzureActiveDirectoryObjectId'

    I uninstalled the plugin profiler, and the error is now gone in our environment.  I did not try reinstalling it as we don't need it right now.

  • Mike_McG Profile Picture
    Mike_McG 10 on at
    RE: Error with plugin profiler : System.TypeLoadException: Method 'get_UserAzureActiveDirectoryObjectId'

    Having the same issue, haven't found a solution yet.

  • anonsgate Profile Picture
    anonsgate 420 on at
    RE: Error with plugin profiler : System.TypeLoadException: Method 'get_UserAzureActiveDirectoryObjectId'

    I downloaded the latest one from nuget and it does the same thing. Happens for every plugin, for every user(all system administrators). I don't see the option in XrmToolBox for profiling

  • Suggested answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: Error with plugin profiler : System.TypeLoadException: Method 'get_UserAzureActiveDirectoryObjectId'

    Have you verified the SDK version, or tried the PRT from latest version?

    Also try with the PRT from XrmToolBox.

    Troubleshoot like if its happening for only one user on particular Laptop or not, to sort out the user specific, machine specific cache issues.

  • Maudit Profile Picture
    Maudit on at
    RE: Error with plugin profiler : System.TypeLoadException: Method 'get_UserAzureActiveDirectoryObjectId'

    Having the same issue here, only when profiling a plugin step, regardless if it's set on Exception or Persist to entity.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans