Skip to main content



No record found.

Business Central forum

CLR Exception when running test codeunit

Posted on by 65
I'm working on developing test codeunits to test out our extension, 
My tests were mostly working great but yesterday I started having a CLR Exception on every single tests I've created, rendering all of my test codeunits useless. 
The complete message indicates : 
Exception CLR imprévue survenue.: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Dynamics.Nav.Client.Tracing, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
I'm especially having this problem when using TestPage.OpenNew().
Is there a way to solve this issue ? Why did it work before and suddenly stopped working ? 
Thanks for your insight.
  • MS-01071154-0 Profile Picture
    MS-01071154-0 4 on at
    CLR Exception when running test codeunit
    Hey, have you found a solution yet? I have the same problem right now.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans