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()


.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,527 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,696 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,765 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,489 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
778 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 113.8K 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