473,403 Members | 2,183 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,403 software developers and data experts.

asp error 0126

For no apparent reason, my webpage cannot be brought up due to an
internal server error. My host tells me an asp 0126 error occurred
because an include file is missing. Its there. I've also checked the
code in the .asp and found everything to be accurate (I mean nothing
has changed and it was working fine before). Any ideas? I can post
the code if you'd like to see it.

Thanks,
Mason
Jul 19 '05 #1
3 3875

"masonj" <ma*******@yahoo.com> wrote in message
news:a1*************************@posting.google.co m...
For no apparent reason, my webpage cannot be brought up due to an
internal server error. My host tells me an asp 0126 error occurred
because an include file is missing. Its there. I've also checked the
code in the .asp and found everything to be accurate (I mean nothing
has changed and it was working fine before). Any ideas? I can post
the code if you'd like to see it.


What happens if you try removing the reference to the include? Does it work
then?

Posting the code would probably help.


Jul 19 '05 #2
"masonj" wrote:
: For no apparent reason, my webpage cannot be brought up due to an
: internal server error. My host tells me an asp 0126 error occurred
: because an include file is missing. Its there. I've also checked the
: code in the .asp and found everything to be accurate (I mean nothing
: has changed and it was working fine before). Any ideas? I can post
: the code if you'd like to see it.

It's not where you're telling it.

Here are the issues I had when first using includes:

1. You have two options: file and virtual
2. Correct syntax:
If current path is /files

<!--#include file="somefile.asp--> ' current directory
<!--#include file="../asp/somefile.asp--> ' other directory off parent path
<!--#include file="inc/somefile.asp--> ' other directory off current path

<!--#include virtual="/asp/somefile.asp--> ' other directory off root
<!--#include virtual="../asp/somefile.asp--> ' other directory off parent
path
<!--#include virtual="inc/somefile.asp--> ' other directory off current path

3. Incorrect syntax:
<!--#include file="/asp/somefile.asp--> ' other directory off root path

This will generate an ASP 0130 error because you cannot precede the path
with a / or a \.

4. Referencing file in wrong location:
<!--#include file="asp/somefile.asp-->

If you were in /files and /asp is where the file is, then this is incorrect.
If you're using FILE instead of VIRTUAL, then you had to remove the / and
possibly just put in asp/somefile.asp but you can't get there from here.

It will generate an ASP 0126 error in this format:

Active Server Pages error 'ASP 0126'
Include file not found

/filename.asp, line #

The include file 'somedirectory/somefile.asp' was not found.

You will either need:
<!--#include file="../asp/somefile.asp-->

or
<!--#include virtual="/asp/somefile.asp-->

If you're using virtual, then the same applies. This is why I ALWAYS use
virtual because I always know where the root is and it doesn't matter what
directory I'm in. I just start at the virtual root.

5. The other possibility is you're just pointing to the wrong directory or
you're running Sun's Chili!Soft, on a *nix box and the filenames are
case-sensitive.

HTH...

--
Roland

This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose.
-Technet Knowledge Base-
http://support.microsoft.com/default...&ln=EN-US&FR=0
-Technet Script Center-
http://www.microsoft.com/technet/tre...er/default.asp
-MSDN Library-
http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #3


Roland...

I've tried the things you posted with no luck. I did notice that you
use the *.asp file as the target, while my include references an *.inc
file. Here's the code:
<form method="POST" action="--WEBBOT-SELF--" onsubmit="return
FrontPage_Form1_Validator(this)" name="FrontPage_Form1">
<!--webbot bot="SaveDatabase" startspan suggestedext="asp"
u-asp-include-url="_fpclass/fpdbform.inc"
s-dataconnection="founder"
s-recordsource="Results" u-database-url="fpdb/founder.mdb"
u-confirmation-url="http://www.gearheadfans.com/paypal.htm"
s-builtin-fields="REMOTE_HOST HTTP_USER_AGENT Timestamp
REMOTE_USER"
s-builtin-dbfields="Remote_computer_name Browser_type
Timestamp User_name"
s-form-fields="race5 race6 address birth_year birth_day
Payment_Type fax email other_phone_number first_name birth_month zip
phone_number city race1 race2 race3 sex State race4 membership
last_name"
s-form-dbfields="race5 race6 address birth_year birth_day
Payment_Type fax email other_phone_number first_name birth_month zip1
phone_number city race1 race2 race3 sex State race4 membership
last_name" --><input TYPE="hidden" NAME="VTI-GROUP"
VALUE="0"><!--#include virtual="_fpclass/fpdbform.inc"--><!--webbot
bot="SaveDatabase" endspan --><p>

I do appreciate the help.

Mason
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #4

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

Similar topics

2
by: | last post by:
We have Windows 2003 Server as our SUS server. When we try to approve updates, etc., we receive the following error message. Has anyone experiences this before? If so, can you tell us what...
4
by: Mason Myers | last post by:
Here is the code:(current path is /application and _fpclass is a subdirectory) <form method="POST" action="--WEBBOT-SELF--" onsubmit="return FrontPage_Form1_Validator(this)"...
0
by: Adil Akram | last post by:
I'm using IIS 5.0 Win2K (SP3). IIS sometime reports ASP 0126 "Include file not found" error on several .asp pages. 've checked my ASP coding its alright and works lot of time but some time it...
1
by: Des Perado | last post by:
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...
13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
0
by: DY1 | last post by:
I have this message appearing on the webpage I intend to visit: ________________________________________________________ Active Server Pages error 'ASP 0126' Include file not found ...
10
by: Eric | last post by:
Hello, I have some server side includes on a Classic asp page that look something like: <!-- #include virtual="/includes/file1.asp"--> <!-- #include virtual="/includes/file2.asp" --> <!--...
5
by: chris_peoples | last post by:
I have a virtual directory, lets say it exists at www.server-a.com/virtual-dir/ virtual-dir points to another directory on another server using the unc path: \\server-b\main-dir I have a file at...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.