Skip to content

Error when running in Release mode #2915

Closed Answered by phillippschmedt
LaBoss asked this question in .NET MAUI
Discussion options

You must be logged in to vote

The error message and the actual error are usually unrelated in my experience. It happens when something fails before or when navigating to the first page.

I use something like this to log navigation errors:

public static void Configure(PrismAppBuilder builder)
        {
            builder.RegisterTypes(RegisterTypes)
                .AddGlobalNavigationObserver(context => context.Subscribe(x =>
                {
                    if (x.Type == NavigationRequestType.Navigate)
                        Console.WriteLine($"Navigation: {x.Uri}");
                    else
                        Console.WriteLine($"Navigation: {x.Type}");
                    
                    if (!x.Resul…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dansiegel
Comment options

Answer selected by LaBoss
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #2913 on July 19, 2023 13:20.