XAML Designer view is not loading

M Faheem Akhtar 0 Reputation points
2023-09-20T14:12:40.2966667+00:00

In Visual Studio 2023 Preview Version

System.NullReferenceException
Object reference not set to an instance of an object.
   at Microsoft.VisualStudio.DesignTools.SurfaceDesigner.DesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)
   at Microsoft.VisualStudio.DesignTools.XamlDesignerHost.HostDesignerView.TryEnsureView()


Developer technologies Windows Presentation Foundation
Developer technologies .NET Other
Developer technologies Visual Studio Other
Developer technologies XAML
Developer technologies C#
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 122.6K Reputation points
    2023-09-20T14:38:51.7066667+00:00

    Probably Visual Studio has an issue, which can be reported using the “Send Feedback” command from HELP menu.

    Try the updated latest Visual Studio (today it is Visual Studio 2022 17.7.4). Probably the Preview version does not have to be uninstalled.

    0 comments No comments

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.