I think it's due to a problem with the packages. I have found a workaround. You should downgrade Microsoft.Maui.Controls and Microsoft.Maui.Compatibility to version 9.0.40 from version 9.0.50 and try to run your project again.