473,325 Members | 2,805 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,325 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 3869

"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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.