vs2022 winform DesignToolsServerException

Wynn Li 1 Reputation point
2022-06-10T08:02:19.203+00:00

REQUEST FAILURES: Sessions/EndLoad
Microsoft.DotNet.DesignTools.Client.DesignToolsServerException: 为访问所需服务。,“Site”不能为 null。

Exception occurred while disposing VSDesignSurface
Microsoft.DotNet.DesignTools.Client.DesignToolsServerException: 要使此功能工作,必须安装服务“Microsoft.DotNet.DesignTools.Designers.IOverlayService”。请确保此服务可用。
在 Microsoft.DotNet.DesignTools.Client.DesignToolsClient.<SendRequestAsync>d__491.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread() 在 Microsoft.VisualStudio.Threading.JoinableTask1.CompleteOnCurrentThread()
在 Microsoft.DotNet.DesignTools.Client.DesignToolsClient.SendRequestCoreTRequest
在 Microsoft.DotNet.DesignTools.Client.DesignerSessionManager.DisposeSession(SessionId id)
在 Microsoft.DotNet.DesignTools.Client.DesignerSession.Dispose(Boolean disposing)
在 Microsoft.WinForms.Utilities.Shared.DisposableObject.DisposeIfNeeded(Boolean disposing)
在 Microsoft.VisualStudio.WinForms.VSDesignSurface.Dispose(Boolean disposing)

210175-%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE-20220610155648.png

repaired and updated doesn't work, how to fix it ?

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.
6,993 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,326 questions
{count} votes