網頁運行錯誤,Debug后在Preview中獲得如下錯誤信息
從客戶端(:)中檢測到有潛在危險的 Request.Path 值。
解決方案:
出這個問題基本上是在轉址字符串中有非法字符。如果不用考慮安全性,取消對非法字符的攔截,可以在Web.config中進行如下配置:
<configuration> <system.web> <httpRuntime requestPathInvalidCharacters="" /> </system.web> </configuration>