Sys.WebForms.PageRequestManagerServerErrorException:服务器返回的状态码为: 500
答案:1 悬赏:80 手机版
解决时间 2021-11-18 12:45
- 提问者网友:骑士
- 2021-11-17 19:49
Sys.WebForms.PageRequestManagerServerErrorException:服务器返回的状态码为: 500
最佳答案
- 五星知识达人网友:笑迎怀羞
- 2021-11-17 20:17
一般的原因都是页面存在潜在的危险字符 在 页首加入 ValidateRequest="false"
如下:
<%@ Page Language="C#" MasterPageFile="~/MasterPages/CompanyManage.master" AutoEventWireup="true" CodeFile="CompanyIntroEdit.aspx.cs" Inherits="CompanyIntroEdit" Title="Untitled Page" ValidateRequest="false" %>
其他解决办法:
在Web.Config
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
在 ScriptManager 内添加 EnablePartialRendering="false" 显示详细的错误信息。
如下:
一般的原因都是页面存在潜在的危险字符 在 页首加入 ValidateRequest="false"
如下:
<%@ Page Language="C#" MasterPageFile="~/MasterPages/CompanyManage.master" AutoEventWireup="true" CodeFile="CompanyIntroEdit.aspx.cs" Inherits="CompanyIntroEdit" Title="Untitled Page" ValidateRequest="false" %>
如下:
<%@ Page Language="C#" MasterPageFile="~/MasterPages/CompanyManage.master" AutoEventWireup="true" CodeFile="CompanyIntroEdit.aspx.cs" Inherits="CompanyIntroEdit" Title="Untitled Page" ValidateRequest="false" %>
其他解决办法:
在Web.Config
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
在 ScriptManager 内添加 EnablePartialRendering="false" 显示详细的错误信息。
如下:
一般的原因都是页面存在潜在的危险字符 在 页首加入 ValidateRequest="false"
如下:
<%@ Page Language="C#" MasterPageFile="~/MasterPages/CompanyManage.master" AutoEventWireup="true" CodeFile="CompanyIntroEdit.aspx.cs" Inherits="CompanyIntroEdit" Title="Untitled Page" ValidateRequest="false" %>
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯