p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 (http://p2p.wrox.com/forumdisplay.php?f=252)
-   -   ch. 2 what is the file size limit to upload? (http://p2p.wrox.com/showthread.php?t=66011)

cluce February 19th, 2008 11:29 AM

ch. 2 what is the file size limit to upload?
 
Server Error in '/SendItNow' Application.
--------------------------------------------------------------------------------

Maximum request length exceeded.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Maximum request length exceeded.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[HttpException (0x80004005): Maximum request length exceeded.]
   System.Web.HttpRequest.GetEntireRawContent() +3315778
   System.Web.HttpRequest.GetMultipartContent() +56
   System.Web.HttpRequest.FillInFormCollection() +222
   System.Web.HttpRequest.get_Form() +65
   System.Web.HttpRequest.get_HasForm() +3309630
   System.Web.UI.Page.GetCollectionBasedOnMethod(Bool ean dontReturnNull) +45
   System.Web.UI.Page.DeterminePostBackMode() +65
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +133
__________________________________________________ ________
According to the text in the website it says you can upload up to 1GB?? I tried to upload 51.1 MB and recieved the error above. Has anybody had this problem or know how to fix this??
I appreciate any help. Thanks.



Imar February 19th, 2008 01:02 PM

Hi there,

Where does it say so? What text are you referring to?

You may want to take a look here: http://p2p.wrox.com/topic.asp?TOPIC_ID=68345 It shows you how to set the maxRequestLength attribute of the httpRuntime element.

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.

cluce February 19th, 2008 04:27 PM

Thanks for the reply I fixed it. It says it on the default.aspx page right above the file upload control "Up to 1GB" which is misleading. It does not say anywhere that you had to configure web.config page
as shown below:

    <httpRuntime
      executionTimeout="1200"
      maxRequestLength="102400"
      useFullyQualifiedRedirectUrl="false"
      minFreeThreads="8"
      minLocalRequestFreeThreads="4"
      appRequestQueueLimit="100" />


Imar February 19th, 2008 04:48 PM

Misleading??? Hmmm, I think it's just an error. Either the text wasn't updated, or we forgot to add the required setting to the file....

You can file an errata for it if you wish, so others won't run into the same issue....

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
While typing this post, I was listening to: Halloween by Dead Kennedys (Track 7 from the album: Plastic Surgery Disasters + In God We Trust) What's This?


All times are GMT -4. The time now is 01:27 AM.

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