03-06-2026 02:51 AM
I’m having a problem when running the compiled .exe of my application.
I’m developing the project using VB.NET in Visual Studio. When I run the program directly from Visual Studio, everything works correctly. When I click a button that executes code using a specific library, it runs without any issue.
However, the problem appears when I build the executable. When I run the generated .exe and click that same button, I get the error shown in the screenshot I attached.
This project was originally started by someone else, so I’ve found some strange things in the configuration that I can’t fully explain.
I’ll describe the current setup of the project.
.Common DLL version 19.1
.Visans DLL version 8.9
This already seems a bit strange to me.
In the bin folder, I see:
.Common DLL version 8.7
.Visans DLL version 8.9
Installed:
Measurement Studio 19.0
The PC has a valid Enterprise license, so licensing should not be the issue.
The part of the code that uses the .Common library was written using version 19.1. Because of that, if I change the reference in Visual Studio to point to version 8.7, I get code errors.
I have already tried deleting the 8.7 version of the DLL from the bin folder so that only 19.1 remains, but the problem still happens. It seems like something is still looking for the older version or some dependency is missing.
As I mentioned, the program works when run from Visual Studio, but fails when executed from the compiled .exe.
I’ve attached screenshots of the configuration and error message in case someone has experienced a similar issue.
Any help would be greatly appreciated.