【问题标题】:Windows Phone 8.1 throws a FileLoadException on startupWindows Phone 8.1 在启动时抛出 FileLoadException
【发布时间】:2015-08-04 14:54:43
【问题描述】:

我目前正在构建一个 Windows Phone 8.1 应用程序 (WinRT)。我可以在 Visual Studio 2013 的调试模式下构建它,没有任何问题。它也可以在模拟器和真实设备上运行。但是当我在发布模式下构建应用程序时,它会立即在模拟器和设备上崩溃。

在 Visual Studio 的调试输出窗口中,我可以看到启动时抛出了 FileLoadException。这意味着:

找到托管程序集时引发的异常但 无法加载。

https://msdn.microsoft.com/de-de/library/system.io.fileloadexception%28v=vs.110%29.aspx

很遗憾,我看不到是哪个程序集导致了问题!有没有办法让信息可见?

A first chance exception of type 'System.IO.FileLoadException' occurred in MarketIQ.exe
A first chance exception of type 'System.IO.FileLoadException' occurred in mscorlib.ni.dll
'MarketIQ.exe' (CoreCLR: .): Loaded 'C:\windows\system32\en-US\mscorlib.debug.resources.dll'. Module was built without symbols.
A first chance exception of type 'System.ArgumentException' occurred in mscorlib.ni.dll
A first chance exception of type 'System.ArgumentException' occurred in mscorlib.ni.dll
'MarketIQ.exe' (CoreCLR: .): Loaded 'C:\Data\SharedData\PhoneTools\AppxLayouts\c53a5ef4-9f4f-4a1d-a5f4-2e73b5806daeVS.Release_AnyCPU.oprins\Log.Model.Client.DLL'. Cannot find or open the PDB file.
The program '[3020] MarketIQ.exe' has exited with code -1073741189 (0xc000027b).

【问题讨论】:

  • 如果您删除 bin\debug 文件夹,您可能会遇到与调试版本相同的错误。检查项目的引用,当找不到时,Visual Studio 通过引用输出文件夹中的 dll 自动更正它,从而导致您描述的那种症状

标签: windows-runtime windows-phone-8.1


【解决方案1】:

问题与设备有关。恢复出厂设置后,该应用现在可以流畅运行。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-02-26
    • 2023-04-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多