Hi Narotham,
Based on my understanding, there might be some errors in the configuration file. You can check the configuration block to see if thereare some errors. You can also remove the configuration block and use the Enterprise Tool to add the configuration block again.
To have the designer shown correctly without caring whether the code about the configuration is correct or not, we can check the DesignMode property and run the code only in non design mode. This is a code snippet:
private void Form1_Load(object sender, EventArgs e)
{
if (!DesignMode)
{
//Do something with the configuration here, it would not affect the designer.
}
}
Please let me know if this does not help.
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.