c# - 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("参数")
解决方案
请记住,UWP 应用需要一定的权限才能打开文件,并且仍然无法打开每个位置。这样做会导致 System.IO 异常,如果您在开始时加载配置文件左右,这可能是您的问题。更多信息在这里
推荐阅读
- ruby-on-rails - 如何在索引操作中呈现部分表单以更新记录的布尔值?导轨 5
- php - PHP file_get_contents 返回 bool(false)
- java - 将 C++ 与 Objective-C 和 Java 混合
- altbeacon - Android 信标库 RSSI 过滤器
- java - 每当我带来更多数据时重复一些项目?
- r - 无法使用 devtools::install_github() 安装 github 包
- angular - 多列 ListView 的角度示例 - nativescript
- python - 如何将 keras 模型的输出作为数值而不是张量对象?
- python - python random.randint 以 5 为增量生成 0-100
- postman - 确定在 ADFv2 中使用 HTTP 数据集的正确语法