Share via

.cs file is not loading in designer mode in Visual Studio

Sowmya Bandela 5 Reputation points
2025-04-09T19:39:18.2933333+00:00

Error as "Timed out while connecting to named pipe"

Stack Trace:

Hide
Call Stack1.Hide
Call Stack 1.Hide
Call Stack 1. Hide Call Stack at Microsoft.DotNet.DesignTools.Client.Host.ServerProcess.d__39.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__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.Host.ServerHostFactory.d__9.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()|

Developer technologies | Visual Studio | Debugging
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Nguyen, Miller 0 Reputation points
    2026-03-10T09:35:14.13+00:00

    This worked for me without admin privilege

    Delete Designer Cache:

      • Close Visual Studio.
      • Press Windows + R and type %LocalAppData%\Microsoft\VisualStudio\.
      • Open the folder corresponding to your Visual Studio version (e.g., 17.0_xxxx) and delete the entire WinFormsDesigner folder.
    0 comments No comments

  2. Sowmya Bandela 5 Reputation points
    2025-04-09T21:10:42.65+00:00

    UI forms were loading earlier without any issue, suddenly they stopped working recently. VS 2022 IDE is being used. Please let me know what can be done in this case , could not get any help by following resolution steps on this error.

    Noted below error in Event Viewer as an additional reference:

    Application: DesignToolsServer.exe CoreCLR Version: 7.0.2024.26716 .NET Version: 7.0.20 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Extensions.Logging, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified. File name: 'Microsoft.Extensions.Logging, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' at Microsoft.DotNet.DesignTools.Server.Program.Main(String[] args, IEnumerable`1 designTimeAssemblies, Action fixUpNetTypes) at DesignToolsServerX64.Program.Main(String[] args)

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.