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

Announcements

No record found.

News and Announcements icon
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,716 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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

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... 528 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 444

#3
Adis Profile Picture

Adis 256 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans