C# 每当我尝试保存此文件时,Visual Studio 2015中都会出现错误

C# 每当我尝试保存此文件时,Visual Studio 2015中都会出现错误,c#,winforms,visual-studio-2015,C#,Winforms,Visual Studio 2015,我正在使用VS2015,并尝试在设计视图中编辑特定的WinForms文件(从以前版本的VS迁移而来的解决方案)。每当我编辑文件时(移动控件、更改属性等),在尝试保存文件时都会出现以下错误: --------------------------- Microsoft Visual Studio -------------------------- Type 'System.Windows.Forms.UserControl' in Assembly 'System.Windows.Forms, V

我正在使用VS2015,并尝试在设计视图中编辑特定的WinForms文件(从以前版本的VS迁移而来的解决方案)。每当我编辑文件时(移动控件、更改属性等),在尝试保存文件时都会出现以下错误:

---------------------------
Microsoft Visual Studio
--------------------------
Type 'System.Windows.Forms.UserControl' in Assembly 'System.Windows.Forms,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not 
marked as serializable.
---------------------------
OK   
---------------------------
我看了类似的文章,找到了从我的解决方案中继承自
System.Windows.Forms.UserControl
的每个类,并将
[Serializable]
属性添加到该类中,我仍然收到相同的错误


你知道这里可能有什么问题吗?或者解决这个问题的步骤吗?

可能是@Reddy的重复,谢谢你找到它-但我尝试了没有用。可能是@Reddy的重复,谢谢你找到它-但我尝试了没有用。