This seems related: https://github.com/microsoft/WindowsAppSDK/issues/3228
Is it possible that Visual Studio is running with elevated permissions? When executing the application outside of Visual Studio, try running it As Administrator.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am developing a maui app in VS 2022, Debug and Release will run fine when launched via VS.
However, when I go to the apps bin folder, it will not launch, I click on the .exe and nothing happens.
I tried copying the bin/release and debug folders to another Win10 machine, same issue. I published a msix and tried that route and it will not run.
How do I make it run without VS?
Event viewer gives me this error:
Description: The process was terminated due to an unhandled exception.
Exception Info: System.TypeInitializationException: The type initializer for '<Module>' threw an exception.
---> System.TypeInitializationException: The type initializer for 'WinRT.ActivationFactory`1' threw an exception.
---> System.Runtime.InteropServices.COMException (0x80040154): Class not registered (0x80040154 (REGDB_E_CLASSNOTREG))
This seems related: https://github.com/microsoft/WindowsAppSDK/issues/3228
Is it possible that Visual Studio is running with elevated permissions? When executing the application outside of Visual Studio, try running it As Administrator.
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more