System.Diagnostics.DiagnosticSource error

Hello!

when debugging a code, I’m getting this error in the “Read Range Workbook” classic activity, VB Windows (Not Legacy), Studio version 23.10.3:
“Read Range Workbook: Could not load file or assembly ‘System.Diagnostics.DiagnosticSource, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. The system cannot find the file specified.”

If I publish the code to on prime orchestrator (v 22.4.4) and run from there, it runs well and no error occur.
How could this error be solved?
The image displays an error message indicating that the "Read Range Workbook" activity failed to load a file or assembly because the specified file cannot be found. (Captioned by AI)

Thank you in advance for your effort in giving the solution!

1 Like

@Yoichi @mukeshkala @Anil_G @ashokkarale @gajanan_patil1 Can someone help , I am facing similar issue.

Hey @alexbritofa try to install the System.Diagnostics.DiagnosticSource from manage package . Since this is a missing assembly, the first step is to ensure that the required version of System.Diagnostics.DiagnosticSource is available in your project.

then try to run you project and also check the .NET framework required version is installed
cheers

@alexbritofa

Go to c:\users\username.nuget and rename the packages folder to any other name and reopen the project and run it

cheers

@alexbritofa,

This could be due to the project is developed in higher version of the studio and now being edited on the lower version.

Try creating a new sample project and add this activity. Check if the issue persists.

The package version was not found, so I downgrade to the last available version and it worked!

Thank you all for your answers :smiley:

3 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.