473,387 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 8920
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: nc | last post by:
My iterator can find my collection when my Action class calls my jsp directly, however when my Action class calls an html file that is set up with IFrames (one of which is loading that same jsp), I...
6
by: Christopher Brandsdal | last post by:
Hi! I get an error when I run my code Is there any other way to get te information from my form? Heres the error I get and the code beneath. Line 120 is market with ''''''''''''Line...
1
by: Roberto | last post by:
Sometimes when loading binary files with Request.BinaryRead IIS on the log gives me the following Error (I have analyzed IIS Log with Web Trend Analyzer and the error isn't frequent): POST...
2
by: Jamie Fryatt | last post by:
Just another quick one, the upload system im using obviously doesn't like request.form is there anything else i can use to pass the variable that wont give me the error shown below. thanks ...
1
by: Vince C. | last post by:
Hi. I'm trying to put upload results from an HTML form into an ADO stream. I thought I could code the following (JavaScript): var s = Server.CreateObject("ADODB.Stream"); s.Type =...
4
by: Zibi | last post by:
I try to use script from www.freeaspupload.net for upload file. I need to store in session object the names of uploaded files but I get an error - Cannot use Request.Form collection after...
2
by: Arpan | last post by:
Under what circumstances can Request.BinaryRead() be useful & when should it be used? Assume that the value of Request.Form("anyvalue") is "a" (without the quotes). The output of <%...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
0
skeptics
by: skeptics | last post by:
Trying to pass a SafeArray that i get form Request.BinaryRead Method in classic asp to a c# com interop component. In this thread i found a solution to pass and cast a normal asp safearray in to a c#...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

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.