System.IO.Exception with UWP FulltrustLauncher EXE

0

System.IO.FileLoadException 0x80131040 C# UWP happens when my .exe is launched using await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync("Parameters")

This is weird because it works normal (NOT UWP), the FullTrustLauncher with DesktopBridge supposedly makes regular .exe's run in UWP but it appears not!

System.IO.FileLoadException 0x80131040 C# UWP happens when my .exe is launched using await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync("Parameters")

FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync("Parameters")

c#
uwp
asked on Stack Overflow Dec 25, 2018 by Sixjac

1 Answer

0

Keep in mind, that UWP apps need certain permission to open files, and can still not open every location. Doing it will lead to a System.IO Exception, which could be your problem, if you load a config file or so at the beginning. More info here

answered on Stack Overflow Dec 25, 2018 by L.W.

User contributions licensed under CC BY-SA 3.0