我試圖將聯繫人添加到常量聯繫網站n我在那裏得到以下異常 遠程服務器返回錯誤:(400)錯誤的請求。什麼是遠程服務器返回錯誤:(400)錯誤的請求?
我正在使用ASp.net C#應用程序插入我的記錄。
任何人都可以告訴我解決方案,或爲什麼我得到上述錯誤?
在此先感謝
我試圖將聯繫人添加到常量聯繫網站n我在那裏得到以下異常 遠程服務器返回錯誤:(400)錯誤的請求。什麼是遠程服務器返回錯誤:(400)錯誤的請求?
我正在使用ASp.net C#應用程序插入我的記錄。
任何人都可以告訴我解決方案,或爲什麼我得到上述錯誤?
在此先感謝
這website是有用的。
Introduction:
Why I am getting this exception? What is the cause of this error. Developers are always curious to know the root cause of an exception, even though they found the solution from elsewhere. So what is the reason of this exception (400 Bad Request).The answer is security. Security is an important feature for any application. ASP.NET try to his best to give you more secure application environment as possible. One important security feature is related to URLs. Because there are various ways a hacker can try to access server resource. Therefore it is important to make your application as secure as possible. Fortunately, ASP.NET provides this security by throwing an exception of Bad Request whenever he feels. In this Article I am try to present when ASP.NET feels to throw this exception. You will also see some new ASP.NET 4 features which gives developers some control on this situation.