-
-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sentry.Maui package causes Unhandled Exception in .NET MAUI WinUI application #3706
Comments
@luminixinc thanks for reporting this. I ran the app from the repo you provided. Unfortunately, I'm unable to reproduce the issue. I tried with both our DSN and yours (you should be able to see the item on the issues tab on Sentry on your hand as well).
Additionally, this message indicates that WinRT.Runtime is missing. So, it's unlikely related to the Sentry SDK. Is there any other info that would help reproduce this issue? |
Hello, |
Package
Sentry.Maui
.NET Flavor
.NET
.NET Version
8.0
OS
Windows
SDK Version
4.12.1
Self-Hosted Sentry Version
No response
Steps to Reproduce
We have created a reduced test case that demonstrates the problem. See https://github.com/luminixinc/NetMauiWinUI_SentryMaui
Expected Result
I expected to be able to run the simple application and see the MainPage with waving dotnet bot and the extra button that calls
SentrySdk.CaptureMessage
Actual Result
Unhandled exception {"Could not load file or assembly 'WinRT.Runtime, Version=2.1.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'. The system cannot find the file specified.":"WinRT.Runtime, Version=2.1.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709"}
See reduced test case that demonstrates the issue at https://github.com/luminixinc/NetMauiWinUI_SentryMaui
The text was updated successfully, but these errors were encountered: