Design Problem in VS2022

Steve 5 Reputation points
2023-05-29T14:48:02.4333333+00:00

I just purchased a new Dell XPS and installed the Community version of Visual Studio 2022. Programs load and execute perfectly, but when an xaml file is viewed in the IDE, the XAML window shows the code correctly but the Design window shows the following error:

I have installed everything I know to install. I have run these programs on another older machine without a similar issue.

Thanks for any help.

System.Exception
The app didn't start. (Exception from HRESULT: 0x8027025B)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.DesignTools.UwpSurfaceDesigner.SurfaceIsolation.UwpSurfaceProcess.<SafeCreateViewAsync>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.VisualStudio.DesignTools.UwpSurfaceDesigner.SurfaceIsolation.UwpSurfaceProcess.<SafeCreateViewAsync>d__46.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.DesignTools.UwpSurfaceDesigner.SurfaceIsolation.UwpSurfaceProcess.<Initialize>d__60.MoveNext()
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,876 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 27,816 Reputation points Microsoft Vendor
    2023-05-30T06:41:46.33+00:00

    Hi @Steve, 

    Welcome to Microsoft Q&A! 

    What is your project type? Please create a new project and check if it only occurs in the specific project or not. 

    You can update your VS2022 to the latest version with Visual Studio Installer. Then, try to launch your Visual Studio 2022 in Safe Mode (run devenv /SafeMode in Developer Command Prompt for VS 2022). And check if the designer works normally. 

    Meanwhile, you can close all running VS instances and try to delete the hidden .vs, bin and obj folders in the project folder. Then, clean and rebuild the solution. 

    Sincerely,

    Anna


    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.

     

    1 person found this answer helpful.