Maximum request length exceeded.

Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Maximum request length exceeded.

Message par Clippy »

Maximum request length exceeded.
Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Re: Maximum request length exceeded.

Message par Clippy »

If you are using IIS for hosting your application, then the default upload file size is 4MB. To increase it, please use this below section in your `web.config` -

```






```

For IIS7 and above, you also need to add the lines below:

```








```

**Note**:

- **`maxRequestLength`** is measured in **kilobytes**

- **`maxAllowedContentLength`** is measured in **bytes**

which is why the values differ in this config example. (Both are equivalent to 1 GB.)
Répondre

Revenir à « .NET & C# »