Visual Studio 2010 Designer Error on Run

后端 未结 17 683
借酒劲吻你
借酒劲吻你 2021-02-03 21:42

I am using using VS2010 and if I have a form open in designer mode and run my application the designer tab will no longer show the form designer but instead an error will be di

相关标签:
17条回答
  • 2021-02-03 22:27

    It seems that after installing SP1 the problem has gone away.

    Thanks for your help everyone.

    0 讨论(0)
  • 2021-02-03 22:35

    This solution works fine, please follow these steps below to solve your problem:

    1. Check the reference if load correctly
    2. Clean the solution and rebuild again
    3. Clean the project and rebuild again
    4. Clean your project and open it again
    0 讨论(0)
  • 2021-02-03 22:36

    Don't code in Form1.Designer.cs. Move your logic to Form1.cs (hit F7 on Form1.cs [Design] tab).

    0 讨论(0)
  • 2021-02-03 22:36

    I was login as administrator in visual studio . I just close my visual studio and again open it without run as administrator and my problem is solved

    0 讨论(0)
  • 2021-02-03 22:39

    I get this visual studio bug too now and then, and I deeply ignore the error text, instead I do the following:

    1. Close the Design-tab
    2. Reopens the Design mode by double click in Solution Explorer, or by right clicking Source code tab and select View Designer
    3. Suddenly everything works again!

    If not helping, you may have to change bullet 2 into: Close and restart Visual Studio.

    Maybe this can help you out.

    0 讨论(0)
  • 2021-02-03 22:39

    I had this same issue and I was able to resolve this by creating new project and then compiled and run the project and then I imported all the files and ran the project again and automatically it was working again did nothing extra.

    0 讨论(0)
提交回复
热议问题