01-11-2018 11:33 AM
Hello,
I'm having a problem with an executable. The unique functionality of this exec is to send an email. I need to use this exec in 2 PC, and nowadays works fine in one of them (not in both). The PC-1 is running with Win10 while the PC-2 is running with Win7.
Both Pc have installed the Run-Time 2011 SP1.
I think the problem is not with my executable but with Windows, but I'm not sure.
In addition, before using gmail.vi, I tried using another vi, based in .NET, but with the same result.
Vicen
LabVIEW 2011/2015 with win10
Solved! Go to Solution.
01-11-2018 11:54 AM
It looks like a dependency problem to me. Do you have the save version of .NET installed?
01-11-2018 12:14 PM
Did you install the executable by creating an actual installer through the LabVIEW project, or just by copying the .exe file? If you haven't tried an actual installer (with all the components that LabVIEW recommends you bundle with it), that would be the first thing I'd try.
01-12-2018 07:08 AM - last edited on 01-15-2018 12:00 PM by Kristi_Martinez
Hi,
Thank you for your responses.
I've checked the .NET framework version of each PC:
- The .NET version where the executable works fine (PC-2) is 4.5.2, while
- the .NET version where the executable doesn't work (PC-1) is 4.7.1.
- In addition, the .NET version where the executable is developed and compiled is also 4.7.1.
The Gmail.exe is a "plug-in" that adds functionalities to another executable (Main executable), bigger than this. This executable was installed (was made with a project and so on) and works fine. I assume that I don't need to create an installer having done the installer of the main executable, even more so when the gmail.exe is quite simple (it doesn't use other LabVIEW option components).
Thank you again,
Vicen
01-12-2018 07:18 AM
Do check if .NET Frame 2.0 (or 3.5) is installed. LabVIEW 2011 usually only has acces to .NET 2 (ASAIK).
Regards, Jens
01-12-2018 07:38 AM - edited 01-12-2018 07:44 AM
As I might have mentioned in an e-mail I sent you.
LabVIEW 2011 needs a bit of an assist to load .NET4.0
See Here where I got a bit of advice on the subject courtesy of these forums
After re-digging for this link
Complete the following steps to force LabVIEW to load .NET 4.0 assemblies.
For built applications the text is the same but the filename is "applicationname.exe.config" and must be in the same directory as the application.