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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Unable to run SysClassRunner in d365 on premise sandbox

(0) ShareShare
ReportReport
Posted on by 10

I recently updated my application to Platform update 29 and now i am unable to run any classes through SysClassRunner to load my custom number sequence.

Whenever I use SysClassRunner it gives me the following error,

Microsoft.Dynamics.Ax.Xpp.ClrErrorException: TypeInitializationExeption ---> System.TypeInitializationException: The type inititlaizer for 'Microsoft.Dynamics.Ax.Metadata.XppCompiler.CompilerTracer' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Dynamics.Ax.DesignTime.Telemetry.OneDS' threw an exception. ---> System.IO.FileLoedAxception: Could not load file or assembly 'Microsoft.Diagnostics.Tracing.TraceEvent, Version=2.0.43.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at Microsoft.Dynamics.Ax.DesignTime.Telemetry.OneDS.cctor() --- End of inner exception stack trace ---

I have found a solution on troubleshoot-on-prem to apply the TSG_SysClassRunner.ps1 but had no luck.

I would appreciate any assistance regarding this issue.

3806.pastedimage1581949937092v1.png

I have the same question (0)
  • Bala Chandra Profile Picture
    355 on at

    Hi, try full application build.

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    moved to the d365 forum

  • Sukrut Parab Profile Picture
    71,710 Moderator on at

    Looks like to me as a build issue causing this. Can you perform build and then check ?

  • Suggested answer
    Mingzhou Deng Profile Picture
    on at

    You need follow this link to fix the issue

    docs.microsoft.com/.../onprem-tsg-implementations

    SysClassRunner doesn't run successfully

    Issue: When you try to run SysClassRunner on Platform update 29 through Platform update 31, you get the following exception:

    stacktrace

    Copy

    Microsoft.Dynamics.Ax.Xpp.ClrErrorException: TypeInitializationExeption --->

    System.TypeInitializationException: The type inititlaizer for 'Microsoft.Dynamics.Ax.Metadata.XppCompiler.CompilerTracer' threw an exception. --->

    System.TypeInitializationException: The type initializer for 'Microsoft.Dynamics.Ax.DesignTime.Telemetry.OneDS' threw an exception. --->

    System.IO.FileLoedAxception: Could not load file or assembly 'Microsoft.Diagnostics.Tracing.TraceEvent, Version=2.0.43.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

    The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at Microsoft.Dynamics.Ax.DesignTime.Telemetry.OneDS.cctor()

    --- End of inner exception stack trace ---

    Reason: There is a .dll mismatch between the runtime and the application.

    Resolution: Use TSG_SysClassRunner.ps1. For more information, see TSG_SysClassRunner.ps1.

  • Moiz Baig1 Profile Picture
    10 on at

    I have already applied that solution but still facing the same issue.

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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 695 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 360 Super User 2026 Season 1

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 288 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans