现在的位置: 首页 > 综合 > 正文

N2CMS——Bugs解决方案总结

2012年01月06日 ⁄ 综合 ⁄ 共 758字 ⁄ 字号 评论关闭

1.在N2后台中,通过editor编辑带html格式的富文本,保存时报错,大致错误信息如下:“A potentially dangerous Request.Form value was detected from the client”,针对此问题的解决方案可参照:http://n2cms.codeplex.com/Thread/View.aspx?ThreadId=211901。(innerLink:http://jefferytay.wordpress.com/2010/04/15/asp-net-4-breaking-changes-1-requestvalidationmode-cause-validaterequestfalse-to-fail/)

 

2.

①错误描述:普通页被强制使用母版页,或嵌套母版页不起作用。

②解决方案:注释掉global.cs中的“viewEngines.Insert(0, new ThemedMasterViewEngine());”。

3.

①错误描述:BeginForm强类型不能使用(Html.BeginForm<ContactController>),使用后报错,错误信息类似“The non generic method 'System.Web.MVC.Ajax.AjaxExtensions.ActionLink(System.Web.Mvc.AjaxHelper,string,string,System.Web.Mvc.Ajax.AjaxOptions)' cannot be used with type arguments”:

②添加“Microsoft.Web.Mvc.dll”,并在配置文件中namespaces节点下添加<add namespace="Microsoft.Web.Mvc"/>

 

抱歉!评论已关闭.