You must Sign In to post a response.
  • Category: ASP.NET

    Unknown Error occured 400 - urgent

    I got the below error in my application and it hangs. I need to logout and login again.

    An unknown error occured while processing the request on the server. The status code returned from the server was: 400

    application is built using c#.

    Please let me know how to fix this, quite urgent
  • #765061
    It is the error completely depending on your application.
    Are you able to debug the issue?
    Can you share the code that handling the request on your server. So that we can identify the issue.

    By Nathan
    Direction is important than speed

  • #765065

    While end user send a request for execution to IIS, it's follows some rules and regulations. In some cases the request won't satisfied those rules and regulations in that case we may face this type of issues like HTTP 400 error.

    If you want to know the more details about this error, I suggest you to go through the below link, may be this might be helpful to you.

    Give respect to your work, Instead of trying to impress your boss.

    Blog :

  • #765068
    Hi swatz,
    Please add this into web.config:
    <add key="aspnet:MaxHttpCollectionKeys" value="10000" />
    <system.web.extensions> <scripting> <scriptResourceHandler enableCompression="false" enableCaching="true"/> </scripting> </system.web.extensions>
    Hope it helps.
    Shashikant Gurav

  • #765071
    Error 400 is a 'Bad Request' error, when you got this error ? if it occur at the time of file upload then you need to define the file upload limit in web.config
    may be following tag will help you
    <httpRuntime executionTimeout="110" maxRequestLength="20000" />
    This error is some what related to security, if your URL path is more than 255 char then also this error may occur
    if you use some special char in URL then also it will throw the error, ( <,>,*,%,&,:,\,?. )
    look at below link for more details

    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • Sign In to post your comments