471,088 Members | 1,263 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,088 software developers and data experts.

Cannot call BinaryRead after using Request.Form collection

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

Jun 4 '07 #1
2 8612
Fixed it....

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

Griff
Jun 4 '07 #2
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.comwrote:
Fixed it....

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

Griff

Jul 23 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Christopher Brandsdal | last post: by
2 posts views Thread by Jamie Fryatt | last post: by
4 posts views Thread by Zibi | last post: by
2 posts views Thread by Arpan | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.