xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

Windows 11, UWP app crash on startup when internet access is disabled #15233

Open Nulien opened 2 years ago

Nulien commented 2 years ago

Hello !

Here is my problem :

Descripition On Windows 11, UWP app crash on startup when computer has no connection.

Steps to Reproduce Disabled connection and launch app.

Informations Version cible : Windows 10, version 2004 (Build 19041)

Nom de l’application défaillante sihost.exe, version : 10.0.22000.1, horodatage : 0x5c7a6c09 Nom du module défaillant : AppXDeploymentClient.dll, version : 10.0.22000.469, horodatage : 0xe01e2319 Code d’exception : 0xc0000005 Décalage d’erreur : 0x0000000000043400 ID du processus défaillant : 0x1304 Heure de début de l’application défaillante : 0x01d83911a7fc7361 Chemin d’accès de l’application défaillante : C:\WINDOWS\system32\sihost.exe Chemin d’accès du module défaillant: C:\WINDOWS\system32\AppXDeploymentClient.dll ID de rapport : 07146df6-6ed3-447b-93b9-19172dfaccef Nom complet du package défaillant : ID de l’application relative au package défaillant :

Workaround User use the app with internet connection enabled.

jfversluis commented 2 years ago

What version of Xamarin.Forms are you using?

Nulien commented 2 years ago

Xamarin.Forms 5.0.0.2196

jfversluis commented 2 years ago

Please update to the latest version to confirm it's still an issue there

Nulien commented 2 years ago

Xamarin.Forms 5.0.0.2337 => same issue

Nulien commented 2 years ago

The problem is reproducible with the default template in VS2022 image

TFreudi1 commented 2 years ago

I had the same in the past with Win 10 when the device have no net connection, means WLAN disabled, no LAN cable connected.

eippos commented 2 years ago

Any updates on this issue? I have exactly the same symptoms (but not using Xamarin). Same overhere: https://stackoverflow.com/questions/71924258/uwp-app-activation-error-in-offline-scenario. After trial and error: if an msixbundle is installed from a local folder on Windows 11, no crash on windows 11 if the internetconnection is disabled. If installed from a webpage (with or without autoupdate activated in the appinstaller xml) the app crashes on windows 11. On windows 10 no problems in any of these scenarios. Pretty sure it also has to do with the disabled ms-appinstaller protocol (https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-43890) in combination with the appxdeploymentclient.dll version

Nulien commented 2 years ago

No update yet. Still waiting for a solution.