Unhandled exception" error when debugging Visual Studio Community 2019

Bibic Durand 1 Reputation point
2022-02-26T13:13:10.957+00:00

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

178018-microsoft-visual-studio-26-02-2022-13-48-55.png

178019-microsoft-visual-studio-26-02-2022-13-49-34.png178045-microsoft-visual-studio-26-02-2022-13-49-52.png178053-microsoft-visual-studio-26-02-2022-13-50-09.png178111-testapp-microsoft-visual-studio-26-02-2022-13-50-3.png178092-testapp-microsoft-visual-studio-26-02-2022-13-51-0.png178054-testapp-microsoft-visual-studio-26-02-2022-13-51-3.png178093-testapp-microsoft-visual-studio-26-02-2022-13-51-5.png178112-testapp-microsoft-visual-studio-26-02-2022-13-53-1.png178083-testapp-microsoft-visual-studio-26-02-2022-13-53-2.png178121-testapp-microsoft-visual-studio-26-02-2022-13-53-3.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.
728 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Castorix31 82,031 Reputation points
    2022-02-26T13:21:26.913+00:00

    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
    2022-02-26T14:02:37.967+00:00

    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 !
    178048-testapp-microsoft-visual-studio-26-02-2022-15-06-2.png178131-winui-desktop-26-02-2022-15-09-06.png

    0 comments No comments

  3. Bibic Durand 1 Reputation point
    2022-02-26T17:40:39.133+00:00

    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:
    178141-jetson-browser-microsoft-visual-studio-26-02-2022.png

    178094-jetson-browser-execution-microsoft-visual-studio-2.png

    Thanks in advance