什么是远程服务器返回错误:(400)错误的请求?

问题描述:

我试图将联系人添加到常量联系网站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.