LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET DLL fails to launch an exe

We have a .NET DLL that launches (1 - n) executable(s) with some arguments. After attaching to the process and watching it execute in VS 2017 it fails when at the call to launch the executable. The same calls work fine in VS 2017. 

 

I suspect this is some kind of security issue not letting me launch exe's from a remote source or something. Does anyone have any recommendations for settings that may allow LabVIEW to allow this to happen?  

 

More info:

-The .NET DLL is wrapped around a C DLL.

-We use a LabVIEW.exe.config file with the " <loadFromRemoteSources enabled="true" /> " parameter. Is there a list of calls that I can make within this file?

 

Thanks!

0 Kudos
Message 1 of 2
(751 Views)

You haven't stated the exception message but I assume this MS Doc describes the problem you were seeing? https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/runtime/loadfromremotes... 

 

Typically you only need this if your executables are on a network share or have dependencies that are on a network share. Its also possible that one or more of these files need to be unblocked.

0 Kudos
Message 2 of 2
(736 Views)