首页 > 解决方案 > System.IO.Exception 与 UWP FulltrustLauncher EXE

问题描述

System.IO.FileLoadException 0x80131040 C# UWP 在使用 await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync("Parameters") 启动我的 .exe 时发生

这很奇怪,因为它可以正常工作(不是 UWP),据说带有 DesktopBridge 的 FullTrustLauncher 可以让常规 .exe 在 UWP 中运行,但它似乎没有!

System.IO.FileLoadException 0x80131040 C# UWP 在使用 await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync("Parameters") 启动我的 .exe 时发生

FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync("参数")

标签: c#uwp

解决方案


请记住,UWP 应用需要一定的权限才能打开文件,并且仍然无法打开每个位置。这样做会导致 System.IO 异常,如果您在开始时加载配置文件左右,这可能是您的问题。更多信息在这里


推荐阅读