韩言福地

只有想不到的,没有办不到的。 - HY Auspicious Place

关键字:
首页 点击这里给我发消息

An unknown error occurred while processing the request on the server. The status code returned from the server was

浏览量:259 更新时间:2011-6-25 20:53:34

ajax调用时候,我在服务器上,碰到的问题,本地机器并没有问题.

<%@ 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" 显示详细的错误信息。

如下:
EnablePartialRendering="false"/>

一般的原因都是页面存在潜在的危险字符  在 页首加入 ValidateRequest="false" 

如下:

<%@ Page Language="C#" MasterPageFile="~/MasterPages/CompanyManage.master" AutoEventWireup="true" CodeFile="CompanyIntroEdit.aspx.cs" Inherits="CompanyIntroEdit" Title="Untitled Page" ValidateRequest="false" %>