473,799 Members | 3,114 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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("u serSessionId")

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

If Request.TotalBy tes 0 Then
With Request
lBytes = .TotalBytes
sbRequest = .BinaryRead(lBy tes)
End With
End If

However - when it gets to the Request.BinaryR ead function, it errors:
Request object: 006~ASP 0206~Cannot call BinaryRead~Cann ot 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 8979
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.comwro te:
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
10312
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 get a servlet error "cannot find collection". Not usre if my issue is HTML, JSP, WebSphere or ??? Any help is very much appreciated. HTML file: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
6
10337
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 120''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
1
4504
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 .../WZUpload.asp |59|ASP_0101_:_80004005|Unexpected_error... I don't have information on the file inserted because it was inserted by other people (Web Candidates that inserts their curricula on our Web Site) I have tried with large files and I...
2
10262
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 jamie ----------
1
2736
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 = adTypeBinary; s.Open(); s.Write( Request.BinaryRead() )
4
5912
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 calling BinaryRead How can I make it? Part of this script: <form name="frmSend" method="POST" enctype="multipart/form-data" action="upload_file.asp" onSubmit="return onSubmitForm();"> <span>File 1 :</span> <input type="file" name="file" size="35"
2
4121
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 <% Response.Write(Request.BinaryRead(10)) %>
8
5483
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 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
0
3225
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# array: http://bytes.com/groups/net/114755-passing-safearray-bytes-vbscript-managed-com-object-c#goto_threadtools but no matter what i try. i cant pass a array that i get from Request.BinaryRead Method in to the component. i always get a error...
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10470
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10247
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10214
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9067
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2935
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.