Access Denied to start any process (WinUI 3)

Lazie Wouters 1 Reputation point
2022-01-12T18:50:44.92+00:00

I can't launch any app because the code below shows this error: System.ComponentModel.Win32Exception: 'Access Denied'

var process = Process.Start(@"C:\foo.exe");

I've already tested it with countless other applications, such as winword, mspaint, calc, notepad, etc, and they all get the same error message.
Even opening Visual Studio with administrator privileges this error message appears.
I don't know if it's something in Visual Studio (I'm using the latest preview version) or if it could be something in WinUI 3 itself.

164501-image.png

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
730 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,363 questions
{count} votes