Error when uploading large files in classic ASP
am 04.10.2007 01:08:47 von miTcheLLI have a client who has a product written in classic ASP that is
deployed at ~100 client sites around the country. The web application
needs to accept large uploads from its users, and so to account for this
they include step-by-step instructions to the administrators installing
the application to manually edit the IIS metabase and update the
AspMaxRequestEntityAllowed entry from 2MB to a suitable value (usually
100 MB). On the classic ASP side, they use a third-party component
called aspSmartUpload (a product line that has since been discontinued).
Uploading large files has worked fine for all of their clients so far,
but they have a new one that is reporting problems. On the development
server, the code works fine, but when they move the application to the
production or QA servers, attempting to upload a large file returns the
following error:
Event Type: Error
Event Source: Active Server Pages
Event Category: None
Event ID: 5
Date: 8/31/2007
Time: 8:00:20 AM
User: N/A
Computer: CEONLINE
Description:
Error: File /PSP/app/code/ord/ord_AttachFunctions.asp Line 479
Unexpected error. The function returned |..
From http://support.softartisans.com/kbview_851.aspx: "This error is
returned when ASP's Request.BinaryRead method encounters difficulty
reading the upload stream."
The above article suggests trying to increase the UploadReadAhead
setting in the Registry, which the client is going to try, but I was
wondering if anyone else had experienced this error previously or has
any suggestions or recommendations for a solution.
Thanks
--
Scott Mitchell [ASP.NET MVP]
mitchell@4GuysFromRolla.com
http://www.4GuysFromRolla.com/ScottMitchell