Windows Phone 8.1 在启动时抛出 FileLoadException

Windows Phone 8.1 throws a FileLoadException on startup

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

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

The exception that is thrown when a managed assembly is found but cannot be loaded.

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).

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