惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
A
About on SuperTechFans
量子位
B
Blog RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
MongoDB | Blog
MongoDB | Blog
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
Microsoft Azure Blog
Microsoft Azure Blog
V
V2EX
Google DeepMind News
Google DeepMind News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
G
Google Developers Blog
U
Unit 42
D
DataBreaches.Net
博客园 - Franky
D
Docker
宝玉的分享
宝玉的分享
Y
Y Combinator Blog
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Hugging Face - Blog
Hugging Face - Blog

博客园 - {:)

[译]删除IE收藏夹下的“链接”文件夹 Javascript Cheat Sheet(Javascript 速查手冊) CSS Cheat-Sheet(CSS速查手冊) 我们不需要企业偶像,我们需要企业英雄 [轉]jQuery selectors (JQuery选择器) 和JQuery Cheat sheet (JQuery 速查手冊) YKWIM - {:) - 博客园 Discover the difference among Types: is operator,typeof keyword and GetType method Don't use GetType() with Page.ClientScript.RegisterClientScriptBlock() DNS 服務器地址被篡改 Outlook2007 連接到Exchange Server 失敗 装了KIS2009之后 10月22日链接篇: ASP.NET, Visual Studio, WPF 和 Silverlight - Scott Guthrie 博客中文版 - 博客堂 The Coding Standard Communication with the underlying transaction manager has failed 程序员八荣八耻 SCORM -LMS-SCO Data课件与平台交互机制圖解 解决安装SP3后,Window Media Player 播放器不能播放的问题 解決VS無法拖拽控件到頁面的問題 Some JavaScript Source Code About WebInput Use Refresh() function right in WebGrid with javascript
the status code returned from the server was:500
{:) · 2008-11-12 · via 博客园 - {:)

異常信息:

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

解決方法:

   1.   如果客服端有不安全字符,如"<br/>" 等未經處理就存放到DB中,可以通過Trace捕獲到類似"从客户端("<br/>")中检测到有潜在危险的 Request.Form 值" 錯誤提醒信息,只要進行不安全字符過濾處理就可以了.

      Tip: 如果一時檢查不出來,可以嘗試使用向該頁面添加 ValidateRequest ="false",

<%@ Page Language="C#" AutoEventWireup="true"  ValidateRequest ="false" %>

再進行測試,如果測試通過,那么很可能該頁面出現的不安全字符,你需要進行安全過濾處理.

  2.   如果沒有不安全字符的原因,先去掉UpdatePanel,然後進行測試,確認是否是程式碼有其他不宜發覺的錯誤,或其他地方程式錯誤或異常導致程式出現不安全字符,導致客服端檢核到不安全字符,進而拋出該"the status code returned from the server was:500"覆蓋掉最先的異常或錯誤.