当前位置: 首页 > news >正文

网站建设程序有哪些内容网站备案需要钱吗

网站建设程序有哪些内容,网站备案需要钱吗,上海建筑设计院,wordpress update异常信息如下#xff1a; 使用 JSON JavaScriptSerializer 进行序列化或反序列化时出错。字符串的长度超过了为 maxJsonLength 属性设置的值。这个异常是在执行MVC中的JsonResult的时抛出的#xff0c;根据异常的Message得知是序列化的字符串超出了maxJsonLength的限制。并得…异常信息如下 使用 JSON JavaScriptSerializer 进行序列化或反序列化时出错。字符串的长度超过了为 maxJsonLength 属性设置的值。 这个异常是在执行MVC中的JsonResult的时抛出的根据异常的Message得知是序列化的字符串超出了maxJsonLength的限制。并得知这个属性是由JavaScriptSerializer提供的因为MVC内置的JsonResult是用JavaScriptSerializer进行序列化的。 单纯在web.config中加入下列配置节无效 system.web.extensionsscriptingwebServicesjsonSerialization maxJsonLength20971520//webServices/scripting /system.web.extensions   还必须重写JsonResult这个类 ConfigurableJsonResult public class ConfigurableJsonResult : JsonResult{public override void ExecuteResult(ControllerContext context){if (context null){throw new ArgumentNullException(context);}if (JsonRequestBehavior JsonRequestBehavior.DenyGet String.Equals(context.HttpContext.Request.HttpMethod, GET, StringComparison.OrdinalIgnoreCase)){throw new InvalidOperationException(This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request. To allow GET requests, set JsonRequestBehavior to AllowGet.);}HttpResponseBase response context.HttpContext.Response;if (!String.IsNullOrEmpty(ContentType)){response.ContentType ContentType;}else{response.ContentType application/json;}if (ContentEncoding ! null){response.ContentEncoding ContentEncoding;}if (Data ! null){JavaScriptSerializer serializer new JavaScriptSerializer();ScriptingJsonSerializationSection section ConfigurationManager.GetSection(system.web.extensions/scripting/webServices/jsonSerialization) as ScriptingJsonSerializationSection;if (section ! null){serializer.MaxJsonLength section.MaxJsonLength;serializer.RecursionLimit section.RecursionLimit;}response.Write(serializer.Serialize(Data));}}}     测试后可以正常使用。   参考 http://www.cnblogs.com/shenba/archive/2012/02/03/2337050.html http://weblogs.asp.net/rashid/archive/2009/03/23/submitting-my-first-bug-after-asp-net-mvc-1-0-rtm-release.aspx 转载于:https://www.cnblogs.com/sherlock99/p/3659759.html
http://wiki.neutronadmin.com/news/279869/

相关文章:

  • 怎么用7牛云做网站在哪里找个人做网站的
  • 浩博建设集团网站网站建设公众号小程序属于什么
  • 哪个网站微博做的最好网站做seo安全吗
  • 广州设计网站培训班智能建站系统下载
  • 多个网站做计划全网seo优化电话
  • 在対网站做可能的来自内部和外部的攻击透明网站模板
  • 福州 网站建设企业网站效果图
  • 个人网站是啥网站做推广页需要什么软件
  • 学做投资网站深圳外贸建站
  • 自己做视频网站做网站文字编辑工作好不好
  • 网站维护流程图上海杨浦网站建设
  • 网站开发设置用户发送wordpress
  • 网站运营思路网站建设和风险评估
  • 智能制造公司厦门seo优化
  • 婚纱摄影网站html模板网站建设与优化
  • 个人可以做导航网站吗谷歌推广培训
  • 重庆市企业网站建设免费播放电视剧的app有哪些
  • 个人备案后做淘客网站网站源码搭建教程
  • 网站没备案能访问吗成立一家公司的基本流程
  • seo网站排名优化公司wordpress循环所有文章
  • 网站建设设计技术方案模板下载温州网站制作优化
  • 私募基金公司网站建设网站建设的相应技术
  • 洛阳建设网站的公司网站图片是用什么软件做的
  • 国外有没有网站是做潘多拉的中牟网络推广外包
  • 网站搭建视频怎样查看网站服务商
  • 做外贸找生意上哪个网站有经验的郑州网站建设
  • 建设网站熊掌号快速网站优化服务
  • 购物网站开发项目意义wordpress app下载模板
  • 百度云网站开发网页美工设计百度
  • 中山建站服务建一个网站花多少钱