IIS ASP - Cannot call BinaryRead after using Request.Form collection

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > July 2007 > Cannot call BinaryRead after using Request.Form collection





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Cannot call BinaryRead after using Request.Form collection
Griff

2007-06-04, 7:20 am

Bizarre problem here....

I have a classic ASP web page that exists in one project.

I have copied this code file into another web project and it errors! The
code has not been altered in any way, so I'm not sure why its errored.

In more details:

The page starts by validating the user, so reads from the request object,
things like:

userSessionID = Request.Form("userSessionId")

Having completed all the uer validation stuff, it then attempts the
following code:

If Request.TotalBytes > 0 Then
With Request
lBytes = .TotalBytes
sbRequest = .BinaryRead(lBytes)
End With
End If

However - when it gets to the Request.BinaryRead function, it errors:
Request object: 006~ASP 0206~Cannot call BinaryRead~Cannot call BinaryRead
after using Request.Form collection.

However, as I've mentioned, this exact code works in another project, so I'm
wondering whether it's an environmental setting that may be different.

Any suggestions most welcomed....

Griff



Griff

2007-06-04, 7:20 am

Fixed it....

The validate user class had been refactored and this caused it to use the
..Form collection.

Griff


rsodeyi@googlemail.com

2007-07-23, 1:20 pm

Hi Griff, or anyone else who can help,
I'm having the exact same problem with the upload working in firefox
but not in IE7
What did you to fix it?
Thanks
Roland

On Jun 4, 12:09 pm, "Griff" <griffithsj_...@hotmail.com> wrote:
> Fixed it....
>
> The validate user class had been refactored and this caused it to use the
> .Form collection.
>
> Griff



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com