Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 12th, 2007, 07:31 AM
Authorized User
 
Join Date: Jan 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error while uploading large image file

Hi All,
I am uploading an image file to the web server using HTTPInputFile, It works fine when I upload a small image but it gives an error- "Can not access closed file." when I try to upload a big file.
I have included following in Web.config:

<system.web>
<httpRuntime executionTimeout="90" maxRequestLength="120000" useFullyQualifiedRedirectUrl="false"/>
</system.web>

Could anyone please suggest me how I can get rid of this problem.
Thanks

No WAY is good until you know your DESTINATION
__________________
No WAY is good until you know your DESTINATION
 
Old November 12th, 2007, 09:32 AM
Authorized User
 
Join Date: Jan 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, I got the solution...
I just had to add an attribute to the tag httpRuntime i.e.
<httpRuntime executionTimeout="90" maxRequestLength="20000" useFullyQualifiedRedirectUrl="false" requestLengthDiskThreshold="8192">

No WAY is good until you know your DESTINATION





Similar Threads
Thread Thread Starter Forum Replies Last Post
uploading a image file raj_nikhil04 Java Basics 1 October 23rd, 2008 09:55 PM
error when uploading file cluce BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 7 February 16th, 2008 01:28 PM
Error in File Uploading Succeedor Classic ASP Basics 0 May 15th, 2007 09:13 PM
Uploading Large Files to a Doc Lib viccoleman SharePoint Admin 1 May 15th, 2006 01:13 PM
uploading large files a 4Mb limit seems present! Grahame2003 C# 2 December 4th, 2003 05:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.