web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Can't execute debug session through PRT

(0) ShareShare
ReportReport
Posted on by 45

Hello there,

I can't debug logic on plugin through attached process on VS. The error I see is following:

"Unhandled Exception: System.TypeLoadException: Could not load type 'Microsoft.Xrm.Sdk.PluginTelemetry.ILogger' from assembly 'Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
at PluginProfiler.Library.AppDomainProxy.Execute(ProfilerExecutionConfiguration configuration, ProfilerExecutionReport report)
at PluginProfiler.Library.ProfilerExecutionEngine.Execute(ProfilerExecutionConfiguration configuration)
at PluginProfiler.Library.ProfilerExecutionUtility.Execute(PluginPermissions permissions, ProfilerExecutionConfiguration configuration)
at PluginProfiler.Library.ProfilerExecutionUtility.Execute(PluginPermissions permissions, OperationConfiguration operation, ProfilerReportingConfiguration reporting, CrmServiceClient administratorProxy, ITracingService tracing, ILogger pluginILoggerService)
at Microsoft.Crm.Tools.DebugPlugin.DebugPluginViewModel.btnExecutionClicked()"

Any ideas?

I have installed the newest version of PRT through pac cli.

I have cleared nuget cache.

I have the same question (0)
  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at
    RE: Can't execute debug session through PRT

    Hi krprus,

    Do you have the System Administrator role?

  • Curious Guy Profile Picture
    45 on at
    RE: Can't execute debug session through PRT

    Yes I have

  • Abdul Wahab Profile Picture
    12,119 Moderator on at
    RE: Can't execute debug session through PRT

    Hi krprus,

    Did you open a visual studio as an Administrator?

  • Ray Profile Picture
    1,537 on at
    RE: Can't execute debug session through PRT

    My guess is that you need to upgrade your nuget package for your plugin project: Microsoft.CrmSdk.CoreAssemblies.

    If you are using a local SDK dll, then you should get the newest SDK dll from nuget.

  • Curious Guy Profile Picture
    45 on at
    RE: Can't execute debug session through PRT

    Unfortunately this didn't help. I really don't know what is going on. Using the same branch my colleague is able to execute it on his computer - the code is te same.

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Can't execute debug session through PRT

    Hello,

    I would recommend checking the folder of PRT and specifically the mentioned assembly. I saw similar behavior when the dll was not "unblocked" on the computer - winaero.com/.../

    Take a closer look at all the content that was downloaded from the internet.

  • Curious Guy Profile Picture
    45 on at
    RE: Can't execute debug session through PRT

    There is no such an option. When I tried to execute debugging I see this:

    pastedimage1672754739309v1.png

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Can't execute debug session through PRT

    Locate the folder of the PRT (on your laptop) and check if the mentioned assembly is blocked. Unblock if it is.

  • Curious Guy Profile Picture
    45 on at
    RE: Can't execute debug session through PRT

    It didn't work. There is no such an option.

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Can't execute debug session through PRT

    Can you please clarify what do you mean by "there is no such an option"? What exactly did you do?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 165

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 148 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans