Unhandled exception" error when debugging Visual Studio Community 2019

Bibic Durand 1 Reputation point

Hello everyone,
I'm facing a problem on Visual Studio Community software on Windows 11 with required specifications. When I create a WinUI 3 project (Desktop application in C#) and I debug the application without even inserting any code, the software loads symbols from the Microsoft symbol server until it stops on an error.
I will detail all the steps in pictures:

  1. I create a project in the V.S editor
  2. I choose the type of project corresponding to the one indicated in the Microsoft WinUI3 documentation: https://learn.microsoft.com/en-us/windows/apps/winui/winui3/create-your-first-winui3-app
  3. I name my project
  4. I choose the template with the Windows Template Studio (SDK)
  5. The window opens and the project is created
  6. I run the x64 debugging of "TestApp".
  7. The output window appears and registers the events
  8. The error window opens
  9. I redo the same steps debugging x64 "TestApp (Package)
  10. The output window opens
  11. Another error also of the type exception not generated opens
    ............ And I'm stuck
    I hope I have provided enough details so that you can help me.
    Thanks in advance



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.
728 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Castorix31 82,031 Reputation points

    Did you install the Windows App SDK Runtime ?
    Microsoft.WindowsAppRuntime.Redist.1.0.0.zip from Downloads for the Windows App SDK

    0 comments No comments

  2. Bibic Durand 1 Reputation point

    I realize that I have to my great surprise not installed this sdk. I now have other app creation options that correspond to the ones described in the Microsoft documentation. My application is now working ! Thanks a lot for your help !

    0 comments No comments

  3. Bibic Durand 1 Reputation point

    Hello again,
    I am forced to ask for your help again. I am facing the same problem when I use a function. I use the TabView module which works well in this configuration: 178085-jetson-browser-debogage-microsoft-visual-studio-26.png

    but displays an error when debugging by adding those functions:


    Thanks in advance