Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem when running the compiled .exe (VB.NET / Visual Studio / Measurement Studio)

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.


Visual Studio 2019 Project – Referenced versions inside the project

  • .Common DLL version 19.1

  • .Visans DLL version 8.9

This already seems a bit strange to me.


BIN folder after compiling

In the bin folder, I see:

  • .Common DLL version 8.7

  • .Visans DLL version 8.9


NI MAX

Installed:

  • Measurement Studio 19.0


License

The PC has a valid Enterprise license, so licensing should not be the issue.


Additional information

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.

0 Kudos
Message 1 of 1
(73 Views)