Base solution for your next web application
Open Closed

MAUI Localization Error On Startup #11583


User avatar
0
rickfrankel created

Hi,

11.2 version here.

When the UserConfigurationManager GetAsync call fails in the MAUI application. Then the app get's into a state you can't recover from other than to force close the app.

The issue boils down to the fact that the localization has not yet been initialized by this API and when it fails, the webrequestexecutor exception handling is trying to use the UserDialogsService.Instance.Confirm message to display a do you want to try again message. This fails because this code itself is using localization which is not yet initialized.

So in L.cs for the MAUI app you throw an exception of "set configuration before using remote localization".

In the old Xamarin solution we had local localization which meant this didn't happen for a select few error messages.

Don't seem to have these local localizations any more and thats causing us an issue.

(The root cause of the Get call failing appears to be something wrong with the refresh token which is not being handled correctly, that I haven't investigated further yet but doing so now).

Thanks Rick


1 Answer(s)
  • User Avatar
    0
    m.aliozkaya created
    Support Team

    Hi @rickfrankel,

    Thank you for your feedback. I think it's the same problem. You can follow the progress here. https://github.com/aspnetzero/aspnet-zero-core/issues/4866