Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET 7 Blazor MAUI "Windows Machine" will not run

Tags:

maui-blazor

I created a default .NET 7 Blazor MAUI solution. The Android emulator works properly, but the "Windows Machine" Framework (net7.0-windows10.0.19041.0) does not start.

The only message is "The program 'xxxx' has exited with code 2147942405 (0x80070005)." I have set a breakpoint in the Program.cs file, but the breakpoint is never reached. The Build and Deployment output windows don't show any errors.

maui-check does not show any issues. I've tried deleting the .vs, bin, and obj folders. My system is running Windows 10 Pro 22H2, .NET 7.0.101 SDK, and 7.0.1 runtimes, with VS2022 17.4.3

Any ideas on how to get this to start?

like image 362
BlazorSaddles Avatar asked Dec 30 '25 04:12

BlazorSaddles


1 Answers

This is an existed issue which is about MAUI apps crash on launch on Windows after Visual Studio update - code 2147942405 on the github.

And you can try the workaround in this issue which tried to download the Microsoft.WindowsAppRuntime.Redist.1.2.zip and run its WindowsAppRuntimeInstall.exe (as admin) .

You can also follow up this issue on the github and wait for fixing this bug.

like image 71
Liyun Zhang - MSFT Avatar answered Jan 04 '26 12:01

Liyun Zhang - MSFT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!