Vishal Seth
Vishal Seth

Reputation: 5048

debugging while uploading large file in ASP.NET

I've checked many threads about this but I'm not sure how to fix this:

When I try to upload a 33 mb file while debuggin, control directly falls into application_endrequest even when I've a breakpoint set to first line in application_beginrequest in my global.asax.cs. I can see the page in non-postback case.

My maxRequestEntityAllowed is set to 400000, and in web.config I got

<httpRuntime maxRequestLength="1024000"/>

What else do I need to fix? I can upload a 25mb file btw.

platform: IIS7, Windows 7 64 bit, .NET framework 2.0, integrated pipeline

Upvotes: 1

Views: 434

Answers (1)

David
David

Reputation: 73564

You've got it set in your Web.Config, which is fine if it's less than the IIS limit. However, if the IIS limit is less than what you specify in the Web.Config, the smaller limit wins. Did you check the IIS limit?

See here for details in fixing this in IIS7.

Upvotes: 2

Related Questions