简体   繁体   中英

C# Visual Studio 2010 form application error message

I keep getting this error when starting a new form project in Visual Studio C# 2010. I think I may have renamed a file from within the properties manager, but not sure!

The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: Form1 --- The base class 'System.Object' cannot be designed.

How can I solve this problem?

Warnings also include:

Warning 1 The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file:

Form1 --- The base class 'System.Object' cannot be designed. 0 0

Delete the designer file. Right-click on the aspx file and choose Convert to Web Application . That should recreate your designer file properly and allow you to open the page again.

我通过将.net 4.0客户端配置文件的属性更改为.net 4.0配置文件来解决此问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM