Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

CLR Exception when running test codeunit

(1) ShareShare
ReportReport
Posted on by 71
Hi, 
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=22.0.0.0, 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
    6 on at
    CLR Exception when running test codeunit
    Hey, have you found a solution yet? I have the same problem right now.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,000 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans