简体   繁体   中英

Debug build works fine, Release build breaks?

Trying to publish my UWP app. I'm able to build Release versions fine (I was actually able to push to the Store), but my app crashes as soon as it's launched. But the debug works fine?

I'm getting this error when debugging a Release build:

Unhandled exception at 0x55BA32F9 (Windows.UI.Xaml.dll) in AppName.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x00A12450, 0x00000002).

And these errors in Event Viewer if I launch it outside of VS:

1st:

Activation of app AppName failed with error: The remote procedure call failed. See the Microsoft-Windows-TWinUI/Operational log for additional information.

2nd:

Faulting application name: AppName.exe, version: 1.0.0.0, time stamp: 0x560c53bd
Faulting module name: Windows.UI.Xaml.dll, version: 10.0.10240.16431, time stamp: 0x55c9b90a
Exception code: 0xc000027b
Fault offset: 0x007132f9
Faulting process id: 0x1e38
Faulting application start time: 0x01d0fbcba39fec70
Faulting application path: C:\Development\AppName\AppName\bin\x86\Release\AppX\AppName.exe
Faulting module path: C:\Windows\System32\Windows.UI.Xaml.dll
Report Id: 5c74b39d-98e4-4e89-b2ec-c81cbd5383d1
Faulting package full name: AppName
Faulting package-relative application ID: App

Is there something I'm doing wrong? I don't get any errors or warnings on Debug.

向app.xaml.cs文件未处理的异常事件中添加一些代码,以将错误文本发送到网络服务或类似Google Analytics(分析)之类的东西,以便您查看发生了什么

Ended up being an issue with Entity Framework when it is compiled in .NET Native. I had to switch to SQLite for what I was using it for. Seems to work fine now.

https://github.com/aspnet/EntityFramework/issues/3293

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM