我們在具有負載平衡服務器的2臺服務器上安裝了Internet站點,兩臺服務器上的代碼相同,但其中一臺服務器每分鐘顯示以下例外,「$ MainContent $ ASPCONTROL「每次都在變化。從客戶端檢測到有潛在危險的Request.Form值異常
A potentially dangerous Request.Form value was detected from the client (ctl00$MainContent$drpOwnerNationality="...lect'"()&%<acx><ScRiPt >prompt..."). at System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
at System.Web.HttpRequest.ValidateHttpValueCollection(HttpValueCollection collection, RequestValidationSource requestCollection)
at System.Web.HttpRequest.get_HasForm()
at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
at System.Web.UI.Page.DeterminePostBackMode()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)_ApplicationError,
我認爲你的控制之一有腳本..ASP.Net做潛在的XSS驗證您的窗體上的所有輸入,...所以它是檢測腳本像字符串中的一個你的控件是什麼例外狀態.. – Viru
請同時添加asp.net頁面代碼 – Aristos
你是否在任何輸入字段中向服務器發送HTML? –