0
Views
2
Comments
Error while import Excel file
Question
I have a Excel file with 15409 lines. Whenever i try to import it, an error is generated and my error handlers don't catch it.
In the service center i get an error message saying: "Maximum request length exceeded." Does anyone knows how can i solve this problem?

Thanks :)
UserImage.jpg
Cláudia Macedo
Hi Ruben,

the problem you have is related to the maximum request length that it is allowed by your application server. Probably your excel file exceeds the 4096 KBytes configured by default.
You can change this configuration on the machine.config file on the following element:
<httpRuntime executionTimeout="90" maxRequestLength="4096" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" enableVersionHeader="true" />

Change the attribute maxRequestLength to a different value according to the needs of the application.

Hope this helps.

Best regards,
Cláudia Macedo
UserImage.jpg
Ruben Silva
Thank you very much!!!

It was a great help :)
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.