You can modify the httpRuntime
element in the file web.config by adding the following attribute. This should resolve the problem of having object null when executing POST.
// limite para o buffer de fluxo de entrada, em kilobytes
<httpRuntime maxRequestLength="2147483647" />
However, you may have problems with request filtering introduced in version 7.0 of IIS. More specifically (my translation):
When request filtering blocks an HTTP request, IIS
7 will return an HTTP 404 error to the client and register the HTTP status with
a unique substatus that identifies the reason why the request
was denied.
+----------------+------------------------------+
| HTTP Substatus | Descrição |
+----------------+------------------------------+
| 404.5 | Sequência URL Negada |
| 404.6 | Verbo Negado |
| 404.7 | Extensão de arquivo Negada |
| ... | |
To resolve this limitation, you can modify the <requestLimits>
element within the web.config
// limita o POST para 10MB, query string para 256 chars, url para 1024 chars
<requestLimits maxQueryString="256" maxUrl="1024" maxAllowedContentLength="102400000" />