2013年1月9日

[Azure]HTTP 404.15 when accessing WebRole with long query string

You may get HTTP 404.15 error when your query string length too is too long.

After enabling Failed Request Trace on the web role, I find the error was thrown by RequestFiltering Module

image

HTTP 404.15 was generated by the module when query string length too long, to workaround this, simply extend the length limit in your web.config by adding the following :

<system.webServer>
    <security>
        <requestFiltering>
            <requestLimits maxQueryString="4096"/>
        </requestFiltering>
    </security>
</system.webServer>

And

<httpRuntime maxRequestLength="4096" maxUrlLength="4096" maxQueryStringLength="4096"/>

沒有留言:

Blog Archive

About Me