在我的VS 2008中,对于主项目,从mybase控件继承了控件/表单的这个错误。这在其他解决方案上没有发生。这是我的基本控制代码:
[StrongNameIdentityPermission(SecurityAction.InheritanceDemand,
PublicKey =
"002400000480000094000000060200000024000052534131000400000" +
"1000100e9b667e72b2a53cfa8283454ee87b14e48ecc93647a200fd05" +
"aaf8713b0458fd4464aeefb54cf1fceb9b2fe77d702c56bc3e93e26b6" +
"c63671da39386a095670e7d3572e4f65301de6a9089dfae5ffe68037d" +
"7b0eee29c83c6acb8f6aa2c7a870167074e75cc6f723873f803a18d66" +
"95ffd1c1298becf579ac64437580e57f6d4"
)]
public partial class MyForm: System.Windows.Forms.Form
{
// Fields
private bool closingAllForms;
private SizeF scaleRatio = SizeF.Empty;
private CommandManager commandManager;
// Events
internal event CancelEventHandler AfterFormClosing;
protected MyForm()
{
if (!base.DesignMode)
{
ApplicationCache.Environment.StartOpenForm = Environment.TickCount;
}
InitializeComponent();
}
任何想法..thx
答案 0 :(得分:2)
我的水晶球说问题位于表单的.resx文件中。在文本编辑器中打开它,导航到第2380行并将4.0.0.0更改为2.0.0.0。寻找其他的。
尝试反向移植在Visual Studio 2010上设计的表单时要小心。