相关疑难解决方法(0)

ASP.NET MVC 2 - 使用jquery ajax响应失败

我不明白这个错误,不要在"JsonResult Test()"中生成错误,我正在做其他项目作为ASP.NET MVC

谢谢

错误:

System.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.

[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.]
   System.Web.Mvc.JsonResult.ExecuteResult(ControllerContext context) +263733
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +10
   System.Web.Mvc.<>c__DisplayClass14.<InvokeActionResultWithFilters>b__11() …
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc jquery json

38
推荐指数
1
解决办法
2万
查看次数

标签 统计

asp.net-mvc ×1

jquery ×1

json ×1