473,657 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sporadic error when calling

I'm receiving a sporadic error: "The remote procedure call failed and did
not execute", when calling the following page:

<%@ language="JavaS cript" %>
<%
var vPath = Server.MapPath( '/btrc/shared/server/files') + '\\';
Response.AddHea der('Content-Disposition','a ttachment;filen ame=' +
Request('FileNa me'));
Response.AddHea der('Content-Type','applicat ion/octetstream');
Response.AddHea der('Pragma','n o-cache');
Response.AddHea der('Expires',' 0');

var vStream = Server.CreateOb ject("ADODB.Str eam");
vStream.Open();
vStream.Type = 1; //binary
vStream.LoadFro mFile(vPath + Request('TempFi le')); //must be full server
path and file name
Response.Binary Write(vStream.R ead());
vStream.Close;
vStream = null;
Response.End;
%>

My assumption is that this error could only come from a failure of "var
vStream = Server.CreateOb ject("ADODB.Str eam")". Is that correct?

Are there any tips for finding out why this failed, and more importantly,
stopping it from failing again?
tia,

Bob M..
Jul 19 '05 #1
0 1372

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1070
by: Helge | last post by:
I have a vb.net app that calls an "old" DLL that does some math (map coordinate transformations), declared with an old fasioned declare statement in my code. Sometimes, but very rarely, the call fails with a COMException. On the last dataset it failed 33 out of a total 4011085709 (4 billion) calls. My code catches the exception and tries one more time. Then it usually works.
0
1505
by: Victor Alcazar | last post by:
Our ASP.NET (VB) is generating sporadic "Unable to validate data" and "Invalid length for a Base-64 char array" errors. The production environment is two Windows 2000 Advanced Servers in a web farm. The <machinekey> web.config element has its validationKey (128 char hex) and decryptionKey attributes set. They are identical on both web servers. I believe the error is related to the viewstate due to similar postings on the Net. ...
3
4278
by: POL8985 | last post by:
The application is developed in ASP.Net with a SQL Server database. Essentially, the application uses a single shared Connection object for all users logged into the system. The connection object is opened/closed for each transaction. The error - System.IndexOutOfRangeException: Cannot find table 0 - occurs on one page that accepts a single piece of data from a textbox. This data is then passed to the business logic classes (in...
3
1316
by: sameer | last post by:
Hi All, i have an asp.net application which has got sql server 2000 behind the scenes. Very simple application, all it does is extract the data from the databse and display it in the grid. But randomly when i access my website in productin ,i get this error mentioned below but when it hit on refresh the website comesup. My website is hosted with godady and they told me that they jsut can not replciate the error on there side and which...
0
1227
by: Petemo94 | last post by:
Folks, I am getting a "sporadic" exception that contains the following stack trace. I say sporadic b/c my DB connection usually works fine, but occasionally it fails. *** I also noted that the folder: *** C:\Documents and Settings\MyServerName\ASPNET\Local Settings\Temp
3
1835
by: christopher.davidson | last post by:
Hello, I am working with XML files and utilizing Array functions to take the XML data and combined it with some html code to display a particular page. The process currently works like so: 1.) Request an Async request of the XML 2.) Once complete, parse the appropriate XML data to parse
0
1207
by: botch | last post by:
Hi! I'm trying to get some help implementing a classic ASP version of the Google API search (http://www.google.com/apis/). I've got a version that works, but it's very sporadic. Sometimes it works, sometimes it comes back blank, sometimes it gives an error. No other ASP version of this API has any problems. Dim Google_Web_APIs_license_key, Search_String Google_Web_APIs_license_key = "HIDDEN" Search_String = Request("q") If...
3
2876
by: Michel Couche | last post by:
Hello, I have an ASP.Net application that uses the Wizard control to build a newsletter. There are three steps in the wizard. The customer's specific design data are loaded from a database in step 1 of the wizard and saved into a session variable. In step 2, when the user clicks on a button, I load the design data from the session variable and these are saved for further handling in a HashTable. The HashTable is defined in the...
3
1628
by: Daniel Rindt | last post by:
Hello List, i hope to find an answer here, my problem is that my Webserver sporadic offers php scripts for download. I search with google and find some issues belonging to php version 4.x and not to my version. Im using php-5.1.6-1.1 (mod_php) with httpd-2.0.54-10.4 and can not find informations belonging to my versions. so i hope someone here can point me to a solution. the problem is sporadic, the server setup works in general. it is...
0
8306
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8825
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
8732
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
8503
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
8605
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
7327
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...
0
4152
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.