473,396 Members | 1,923 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,396 software developers and data experts.

Avoiding missing include file error

We have an elderly DOS-based system running on a Novell Netware server here,
and an extensive intranet. Quite recently the board decided that some
crucial info from the DOS system was to be made available to senior
management via the intranet. After some initial design problems (OK, after
severely scratching our heads at the HOW? question) we were quite pleased
with our solution: a background process in the DOS system gathers the data
and creates four include files, containing not only the stats but also some
of the HTML formatting, then shells to a DOS FTP command to get them to the
web server, and this all happens every 60 seconds. At the client end an ASP
page calls the four includes into a static page and displays the info, with
a meta refresh, also every 60 seconds. It's essential that up to date info
is displayed with one-minute resolution.

This works better than we could have hoped except for one little random
oddity: if a client instance just happens to refresh at the exact
millisecond that the FTP process is taking place we see an ASP 0126 error
and "The include file 'addition.inc' was not found". Hitting F5 reloads the
whole page of course, and we may not see the error again for hours. The
include files are so tiny that the FTP process is over within literally
milliseconds.

It's the last remaining untidiness in the system, and I was wondering if
anybody could suggest a way to avoid the error. I would rather see a blank
portion of the correct web page than a white error screen.

Thanks for reading this.
Jul 21 '05 #1
1 1578
If the .inc file doesn't include any ASP code, you could consider a couple
of approaches:

(a) use FileSystemObject to determine the file's existence, then read the
content in and response.write it, instead of using the pre-processor
#include directive
(a) ii. keep a copy of the file locally to use as a backup
(b) keep the file on a reliable server that is not prone to this weird
refresh issue

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Des Perado" <de*@per.ado> wrote in message
news:2u*************@uni-berlin.de...
We have an elderly DOS-based system running on a Novell Netware server here, and an extensive intranet. Quite recently the board decided that some
crucial info from the DOS system was to be made available to senior
management via the intranet. After some initial design problems (OK, after
severely scratching our heads at the HOW? question) we were quite pleased
with our solution: a background process in the DOS system gathers the data
and creates four include files, containing not only the stats but also some of the HTML formatting, then shells to a DOS FTP command to get them to the web server, and this all happens every 60 seconds. At the client end an ASP page calls the four includes into a static page and displays the info, with a meta refresh, also every 60 seconds. It's essential that up to date info is displayed with one-minute resolution.

This works better than we could have hoped except for one little random
oddity: if a client instance just happens to refresh at the exact
millisecond that the FTP process is taking place we see an ASP 0126 error
and "The include file 'addition.inc' was not found". Hitting F5 reloads the whole page of course, and we may not see the error again for hours. The
include files are so tiny that the FTP process is over within literally
milliseconds.

It's the last remaining untidiness in the system, and I was wondering if
anybody could suggest a way to avoid the error. I would rather see a blank portion of the correct web page than a white error screen.

Thanks for reading this.

Jul 21 '05 #2

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

Similar topics

6
by: dmiller23462 | last post by:
Here is the code, it's not complete of course....I've been inserting lines as I go to pinpoint the issue.....I understand that the error message I'm getting (#185 Missing Default Property) is...
3
by: Dave | last post by:
Hello all, Please consider this code: #ifndef FOO_INCLUDED #define FOO_INCLUDED // File: foo.h class foo {
2
by: John Welch | last post by:
It happens much too often that I have to tell a client how to fix up missing references when I send them an application, especially if the client is distributing it to different users. It makes me...
11
by: Wolfgang Kaml | last post by:
I am not sure if this is more of an expert question, but I am sure that they are out there. I'd like to setup a general application or bin directory on my Win2003.Net Server that will hold some...
4
by: Frank-René Schäfer | last post by:
-- A class needs to have N members according to N types mentioned in a typelist (possibly with one type occuring more than once). -- The classes should be generated **avoiding** multiple...
1
by: rnot | last post by:
I encounter the following error mesagess (Linker errors I think cause it compiles well) whenever I try to define my classes in a global scope. I have four files: DataGrabber.h, Datagrabber.cpp,...
2
by: im2cre8iv | last post by:
Here is my code where I am receiving the error: #include <fstream> #include "BinaryTree.h" using namespace std; Node* BinaryTree::MakeTree(ifstream& infile) { char name; infile>>name;
1
by: jacek.dziedzic | last post by:
Hi! I have a program that #includes a header file of an external library. If the environment is set-up correctly, this file is found in the include path and everything works. Now, assume...
0
by: anto.anish | last post by:
Hi , Since, i did not want to write all instantiations in Source file of all template methods for various different datatypes that my client might use, Instead, i choose to write implementation...
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,...
0
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,...
0
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...
0
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...
0
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...
0
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,...

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.