473,654 Members | 3,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1585
If the .inc file doesn't include any ASP code, you could consider a couple
of approaches:

(a) use FileSystemObjec t 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
2957
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 referring to "textfile" but I can't find any information as to what the default property SHOULD be.... By the way, I'm working on an online submission form for our intranet that emails several parties AND THEN appends to a text file for later...
3
4635
by: Dave | last post by:
Hello all, Please consider this code: #ifndef FOO_INCLUDED #define FOO_INCLUDED // File: foo.h class foo {
2
1789
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 look unprofessional (which I guess I am to some extent). I've tried the fixuprefs() function I got from the knowledge base (that uses the qryTestRefs and checks for error 3075), but it doesn't seem to get called, and I still get the problem. I'm...
11
3120
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 useful utils that more pages on that server can use. As an example, I have created a Page Counter class that opens an Access .mdb file, counts the current entries for that page, and adds a new entry with some information regarding the current...
4
3633
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 inheritance (avoiding prosperation of virtual func tables). -- At the same time, a class taking N types shall contain a virtual member function that calls a function according to the number of arguments That means, something like:
1
1648
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, EDRTSV1.h, EDRTSV1.cxx I am using VC++ 6 (Yep I know). // DataGraber.h #ifndef DataGrabber #define DataGrabber #include "EDRTSV1.h"
2
5752
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
2063
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 that a user forgot to either install the external library
0
1344
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 of template methods along with their declarations in the header file. Well, there are also other files in the project, which include this header file as well, which all gets compiled, linked and tested well. #ifndef __ATT_H__
0
8375
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
8290
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
8815
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
8707
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
8482
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
7306
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
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1916
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.