I can not see the form any more

William de 116 Reputation points
2024-05-14T12:54:55.9733333+00:00

Hi

When I open the form I get error

Timed out while connecting to named pipe.

User's image

What it mean and how to fix ?

Thanks

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,858 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,415 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,476 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 49,251 Reputation points
    2024-05-16T19:20:37.8+00:00

    Just a gut instinct but do you have any code in your form's constructor besides a call to InitializeComponent? The constructor (ctor) of your form is called by the designer. If your ctor attempts to load anything that is normally not accessible at design time (such as databases) then it'll fail. Anything beyond initialization of UX fields should be postponeded until the OnLoad method is called.

    Click the Show Call Stack link and look at what is being called.