完成错误提示信息如下:
重写成员“FredCK.FCKeditorV2.FCKeditorConfigurations.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)”时违反了继承安全性规则。重写方法的安全可访问性必须与所重写方法的安全可访问性匹配。 D:/SourceCode/ThinkerWeb/WebSite/Admin/AddNews.aspx
解决方法其实很简单,在fckeditor项目中AssemblyInfo.cs文件里加上如下信息即可:
[assembly: System.Security.SecurityRules(System.Security.SecurityRuleSet.Level1)]
引发该错误的原因可参考微软MSDN http://msdn.microsoft.com/zh-cn/library/dd233102.aspx
在VS2010中使用fckeditor出现重写成员...GetObjectData...时违反了继承安全性规则...的解决方法