Cannot Place User Control on Form

前端 未结 8 1186
南笙
南笙 2020-12-06 03:48

I\'ve created a C# WinForms application using VS2010. I\'m new to creating user controls so I created a new user control (as part of the same project).

When I rebuil

8条回答
  •  太阳男子
    2020-12-06 04:24

    I also experienced this problem but the cause was different. In my case a component (form) constructor or Load event invoked a method elsewhere that used reflection to find all classes that implemented a certain interface.

    While that works fine at runtime, it generated the above mentioned exception at Design Time. (Type Initialization exception with a Type Load Exception as inner exception).

提交回复
热议问题