zoukankan      html  css  js  c++  java
  • Sys.WebForms.PageRequestManagerServerErrorException: 在服务器上处理请求时出现未知错误解决办法

    在使用updatepanel 时,上传到服务器出现如下错误:

    Sys.WebForms.PageRequestManagerServerErrorException: 在服务器上处理请求时出现未知错误。服务器返回的状态码为: 500

    解决办法:

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

    如下:

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


    其他解决办法:

    在Web.Config
    <system.web>
          <pages enableEventValidation="false"/>
    </system.web>
    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" 显示详细的错误信息。

    如下:
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="false"/>

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

    如下:

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

    本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/lijia12345/archive/2008/10/29/3173271.aspx

  • 相关阅读:
    aps.net 图形验证码(转)
    js浮点数计算问题 + 金额大写转换
    meta标签总结
    Asp.net Session 保存到MySql中
    css3实现边框圆角样式
    iOS开发之NSOperation & NSOperationQueue
    iOS开发之多线程
    iOS开发之Block
    iOS开发之核心动画(Core Animation)
    iOS开发之CALayer
  • 原文地址:https://www.cnblogs.com/lbg280/p/1525041.html
Copyright © 2011-2022 走看看