10-24-2012 02:05 PM
I have an executable that runs on my development system and after installation on the target system gives the attached "This VI is not executable." message. This executable runs on other PCs of similar type.
Per other postings, I have updated the .NET framework of the target to match my development system and I have unchecked the "Remove unused polymorphic VI instances" checkbox.
I still get the same "maddeningly unhelpful" message.
This is a very simple VI that just checks the operator input against a log file to prevent duplicate serial numbers being entered, and then launches another program via the command line.
Any ideas?
Thanks,
Dennis
10-24-2012 05:42 PM
Sorry, I don't have a solution, I just wanted to point out that you probably broke some record here:
Your image has about 100bytes of useful information, but your attachment is ~1.5MB, or about 15000x too big. 😮
10-24-2012 06:36 PM
Does your development machine have multiple version of .Net on it? If so, NI will automatically use the latest version. We have run into this in the past when multiple version of .Net were installed. You can force which verson to use by including a file named "<application name>.exe.config". The contents would be the following:
<?xml version ="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0.30319"/>
</startup>
</configuration>
Simply make sure that the version corresponds to the correct version of .Net you want to use.
10-25-2012 08:33 AM
Yeah, I should have typed in the message rather than attaching the picture.
"This VI is not executable. The full development version of LabVIEW is required to fix the errors."
10-25-2012 08:34 AM
No, I only have .NET 4.0 on my system and I installed 4.0 on the target system.
10-25-2012 08:45 AM
Is the Run-Time engine installed?
Ben
10-25-2012 09:02 AM
Oh yes, as part of the installer, the Run-Time Engine is installed.
LabVIEW 2012f3 by the way.
10-25-2012 09:05 AM
I should mention that the VI runs on other PCs, but not on this target.
I thought it was a memory issue since the target system only had 512MB of RAM installed and the other PCs have 1GB of RAM. However, installing 1GB did not help.
10-25-2012 09:30 AM
Does the target system have other versions of .Net installed? We would see this error fairly often until we started to include the config file with our installs.
10-25-2012 10:25 AM
@hartzde wrote:
Oh yes, as part of the installer, the Run-Time Engine is installed.
LabVIEW 2012f3 by the way.
Bitness? (developed in 64 deployed to 32?) 1/2 G RAM on the target begs me to question the OS's of both the development and target machines and the LabVIEW RTE / IDE (x64/x32) versions