此错误的任何解决方案:连接到命名管道时超时。?

问题描述 投票:0回答:1

我无法再次打开旧表格。我收到此错误:

Timed out while connecting to named pipe

enter image description here

我搜索并遵循了一些步骤,但没有解决方案

  • 禁用我的防火墙
  • 在“Windows Forms Designer”选项中将警告级别更改为无
  • 将目标 .Net 从 net8 更改为 net7
  • 删除了.vs、obj、bin
  • 创建新表单也会导致同样的问题

还有其他解决办法吗?我使用 VS 2022 社区

调用堆栈

at Microsoft.DotNet.DesignTools.Client.Host.ServerProcess.d__36.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.DotNet.DesignTools.Client.Host.ServerProcess.d__28.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.DotNet.DesignTools.Client.Host.ServerHostFactory.d__8.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.DotNet.DesignTools.Client.DesignToolsClientLoader.d__29.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.DotNet.DesignTools.Client.DesignToolsClientLoader.<>c__DisplayClass25_1.<<-ctor>b__1>d.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.DotNet.DesignTools.Client.DesignToolsClientLoader.d__27.MoveNext()  
c# visual-studio
1个回答
0
投票

我将目标框架更改为

net471
,然后保存,重新加载,然后将其更改回
net8-windows
,然后保存,关闭VS并再次打开项目,现在表单正常加载了!!!

© www.soinside.com 2019 - 2024. All rights reserved.