Visual Studio 2022 quits when starting UWP App

Niklas Hanft 0 Reputation points
2023-04-11T07:54:11.7766667+00:00

I am developing an Universal Windows Platform app, utilizing a webview. I've already tried:

  • https://learn.microsoft.com/en-us/visualstudio/ide/reference/safemode-devenv-exe?view=vs-2022
    • Nothing really works anymore in safemode - cant say if thats by design or not.
  • Checking ActivityLog.xml
  • Microsoft.VisualStudio.Extensibility.ExtensionMetadataService System.UnauthorizedAccessException (only thing unusual?)
  • Reinstalling Visual Studio
  • Reinstalling NuGet Packages
  • Repairing Visual Studio (through installer)
  • Create a blank new App and start it there (same behavior)
  • Repairing .NET Framework 4.8
  • Cleanup/Rebuilding
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,449 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,431 Reputation points Microsoft External Staff
    2023-04-13T08:18:58.3266667+00:00

    Hello @Niklas Hanft ,

    Welcome to Microsoft Q&A forum.

    Is there any limit on your machine such as rules, group policy, permission limits, extension or antivirus blocking?

    The error message indicates that it’s a permission issue. If you try to run VS as administrator, will it work?

    Besides, does ActivityLog.xml file list the unauthorized file/folder or path?

    Please also try to reset VS settings(run devenv /ResetSettings in Developer Command Prompt for Visual Studio 2022).

    Feel free to let us know the results.

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.