我的解决办法:
在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" %>

Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1916495

相关文章:

  • 2021-12-27
  • 2021-04-12
  • 2021-09-01
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
猜你喜欢
  • 2021-11-14
  • 2021-08-08
  • 2021-09-30
  • 2022-12-23
  • 2021-10-27
  • 2021-07-11
相关资源
相似解决方案