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
    Thanks.
  • #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
    Hi,

    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.

    blogs.msdn.com/b/webtopics/archive/2009/01/29/how-to-troubleshoot-http-400-errors.aspx

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

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/

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

  • #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
    <system.web>
    <httpRuntime executionTimeout="110" maxRequestLength="20000" />
    </system.web>
    OR
    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
    http://www.iis.net/learn/troubleshoot/diagnosing-http-errors/troubleshooting-http-400-errors-in-iis

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


Sign In to post your comments