From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application builder does not include mscorlib path properly result is error 1072

When building a exe using the application builder the exe will only run locally. When the exe (and all files created for the exe) are moved to a different computer or run from a network location the following error is captured after stopping the application:

 

Error accessing property Tektronix.LogicAnalyzer.TpiNet.ITlaSystem.MessageBoxesEnabled of ObjectId handle: 0x7A915CC for obj 0xEF627A[TlaSystem] in domain [M6E_FFT_120908.exe for Run] and thread 264, (System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.            Inner Exception: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

) in Tektronix TLA Series.lvlib:Initialize.vi->M6E_FFT_viaTLA4.vi

 

 

0 Kudos
Message 1 of 2
(2,466 Views)
The exe only contains the program you wrote. It does not include any hardware drivers (NI-VISA, NI-GPIB, IVI Compliance Package, IVI driver, MAX, MAX configuration, etc.). You should never create just an exe and distribute that. You should create an installer and include in the installer all of the other drivers you need.
Message 2 of 2
(2,460 Views)