Home > .NET > Cannot access a closed file

Cannot access a closed file

This Error occured usually when trying to upload a file which is more than a 100 kb.

The solution of this error is:
Add this line in the web.config after <custom errors> [<httpRuntime executionTimeout=”90″ maxRequestLength=”20000″ useFullyQualifiedRedirectUrl=”false” requestLengthDiskThreshold=”8192″/>]

P.S. Please note that 20000 are in KB.

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: