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

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
Google DeepMind News
Google DeepMind News
云风的 BLOG
云风的 BLOG
WordPress大学
WordPress大学
Vercel News
Vercel News
Apple Machine Learning Research
Apple Machine Learning Research
T
Tailwind CSS Blog
I
InfoQ
小众软件
小众软件
Recent Announcements
Recent Announcements
博客园 - 【当耐特】
The GitHub Blog
The GitHub Blog
大猫的无限游戏
大猫的无限游戏
美团技术团队
T
The Blog of Author Tim Ferriss
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
MongoDB | Blog
MongoDB | Blog
V
V2EX
J
Java Code Geeks
有赞技术团队
有赞技术团队
博客园 - 聂微东
B
Blog RSS Feed
博客园 - 司徒正美

博客园 - {:)

[译]删除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"覆蓋掉最先的異常或錯誤.