473,587 Members | 2,588 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS6 500 Server Error Include File Not Found when running an asp script.

JR
Hi, I'm migrating my website to an IIS 6.0 server and all
the asp pages work fine except for the ones that reference
include files, even though I have "Enable parent paths"
enabled in the App/Options tab.

The include files are being called as
<!-- #include virtual="../includes/file.inc" -->
<!-- #include virtual="../includes/script.asp" -->

If I remove the parent path call it works just fine. I
don't understand why it's doing this if I clearly
have "Enable parent paths" turned on in the Application
Options tab. Is there someother place where it needs to be
turned on. The error sent back to the browser is a 500
internal server error but looking at the event viewer it
shows that it cannot find the include file.

Thanks.
Jul 19 '05 #1
9 9411
The option of "virtual" in an include file sets it to the root of the
web. Basically what you are saying is after going to the root of the
web go to it's parent folder. So just get rid of the "../" as that
shouldn't be there with a "virtual" include.

JR wrote:
Hi, I'm migrating my website to an IIS 6.0 server and all
the asp pages work fine except for the ones that reference
include files, even though I have "Enable parent paths"
enabled in the App/Options tab.

The include files are being called as
<!-- #include virtual="../includes/file.inc" -->
<!-- #include virtual="../includes/script.asp" -->

If I remove the parent path call it works just fine. I
don't understand why it's doing this if I clearly
have "Enable parent paths" turned on in the Application
Options tab. Is there someother place where it needs to be
turned on. The error sent back to the browser is a 500
internal server error but looking at the event viewer it
shows that it cannot find the include file.

Thanks.


Jul 19 '05 #2
On Thu, 19 Aug 2004 12:59:29 -0700, "JR"
<an*******@disc ussions.microso ft.com> wrote:
Hi, I'm migrating my website to an IIS 6.0 server and all
the asp pages work fine except for the ones that reference
include files, even though I have "Enable parent paths"
enabled in the App/Options tab.

The include files are being called as
<!-- #include virtual="../includes/file.inc" -->
<!-- #include virtual="../includes/script.asp" -->

If I remove the parent path call it works just fine. I
don't understand why it's doing this if I clearly
have "Enable parent paths" turned on in the Application
Options tab. Is there someother place where it needs to be
turned on. The error sent back to the browser is a 500
internal server error but looking at the event viewer it
shows that it cannot find the include file.


Where is the include? And where is the include virtual looking?

Look at your code, look at what you posted and you have your answer.
An include virtual starts the path at the root of the web site. So if
your physical structure is:

c:\
c:\Inetpub
c:\Inetpub\Webs ite
c:\Inetpub\Webs ite\Includes
c:\Inetpub\Webs ite\Includes\fi le.inc

Then this:

<!-- #include virtual="includ es/file.inc" -->

Gives you this:

c:\Inetpub\Webs ite\Includes\fi le.inc

And this (what you have):

<!-- #include virtual="../includes/file.inc" -->

Gives you this:

c:\Inetpub\Incl udes\file.inc

IIS6 won't let you traverse back a directory above the web site root,
and simply drops the request. IIS5 was looser in interpretations of
these types of violations.

Jeff

Jeff

Jul 19 '05 #3
It's going one directory up because it's one directory
deep.

My structure is as follows.

wwwroot/
wwwroot/include
wwwroot/carpages

Thus the pages inside carpages need to cd .. to go one
directory up into the include directory. This code worked
perfectly fine on IIS5
-----Original Message-----
The option of "virtual" in an include file sets it to the root of theweb. Basically what you are saying is after going to the root of theweb go to it's parent folder. So just get rid of the "../" as thatshouldn't be there with a "virtual" include.

JR wrote:
Hi, I'm migrating my website to an IIS 6.0 server and all the asp pages work fine except for the ones that reference include files, even though I have "Enable parent paths"
enabled in the App/Options tab.

The include files are being called as
<!-- #include virtual="../includes/file.inc" -->
<!-- #include virtual="../includes/script.asp" -->

If I remove the parent path call it works just fine. I
don't understand why it's doing this if I clearly
have "Enable parent paths" turned on in the Application
Options tab. Is there someother place where it needs to be turned on. The error sent back to the browser is a 500
internal server error but looking at the event viewer it shows that it cannot find the include file.

Thanks.


.

Jul 19 '05 #4
It's going one directory up because it's one directory
deep.

My structure is as follows.

wwwroot/
wwwroot/includes
wwwroot/carpages

Thus the pages inside carpages need to cd .. to go one
directory up into the include directory. This code worked
perfectly fine on IIS5

-----Original Message-----
On Thu, 19 Aug 2004 12:59:29 -0700, "JR"
<an*******@dis cussions.micros oft.com> wrote:
Hi, I'm migrating my website to an IIS 6.0 server and allthe asp pages work fine except for the ones that referenceinclude files, even though I have "Enable parent paths"
enabled in the App/Options tab.

The include files are being called as
<!-- #include virtual="../includes/file.inc" -->
<!-- #include virtual="../includes/script.asp" -->

If I remove the parent path call it works just fine. I
don't understand why it's doing this if I clearly
have "Enable parent paths" turned on in the Application
Options tab. Is there someother place where it needs to beturned on. The error sent back to the browser is a 500
internal server error but looking at the event viewer it
shows that it cannot find the include file.
Where is the include? And where is the include virtual

looking?
Look at your code, look at what you posted and you have your answer.An include virtual starts the path at the root of the web site. So ifyour physical structure is:

c:\
c:\Inetpub
c:\Inetpub\Web site
c:\Inetpub\Web site\Includes
c:\Inetpub\Web site\Includes\f ile.inc

Then this:

<!-- #include virtual="includ es/file.inc" -->

Gives you this:

c:\Inetpub\Web site\Includes\f ile.inc

And this (what you have):

<!-- #include virtual="../includes/file.inc" -->

Gives you this:

c:\Inetpub\Inc ludes\file.inc

IIS6 won't let you traverse back a directory above the web site root,and simply drops the request. IIS5 was looser in interpretations ofthese types of violations.

Jeff

Jeff

.

Jul 19 '05 #5
You're right it doesn't matter if it's one directory deep
it bases it off the root (I wonder why it worked in IIS5).

Thanks.
-----Original Message-----
It's going one directory up because it's one directory
deep.

My structure is as follows.

wwwroot/
wwwroot/includes
wwwroot/carpages

Thus the pages inside carpages need to cd .. to go one
directory up into the include directory. This code worked
perfectly fine on IIS5

-----Original Message-----
On Thu, 19 Aug 2004 12:59:29 -0700, "JR"
<an*******@di scussions.micro soft.com> wrote:
Hi, I'm migrating my website to an IIS 6.0 server andallthe asp pages work fine except for the ones thatreferenceinclude files, even though I have "Enable parent paths"
enabled in the App/Options tab.

The include files are being called as
<!-- #include virtual="../includes/file.inc" -->
<!-- #include virtual="../includes/script.asp" -->

If I remove the parent path call it works just fine. I
don't understand why it's doing this if I clearly
have "Enable parent paths" turned on in the Application
Options tab. Is there someother place where it needs tobeturned on. The error sent back to the browser is a 500
internal server error but looking at the event viewer itshows that it cannot find the include file.
Where is the include? And where is the include virtual

looking?

Look at your code, look at what you posted and you have

your answer.
An include virtual starts the path at the root of the

website. So if
your physical structure is:

c:\
c:\Inetpub
c:\Inetpub\We bsite
c:\Inetpub\We bsite\Includes
c:\Inetpub\We bsite\Includes\ file.inc

Then this:

<!-- #include virtual="includ es/file.inc" -->

Gives you this:

c:\Inetpub\We bsite\Includes\ file.inc

And this (what you have):

<!-- #include virtual="../includes/file.inc" -->

Gives you this:

c:\Inetpub\In cludes\file.inc

IIS6 won't let you traverse back a directory above the

web site root,
and simply drops the request. IIS5 was looser in

interpretation s of
these types of violations.

Jeff

Jeff

.

.

Jul 19 '05 #6
You're right it doesn't matter if it's one directory deep
it bases it off the root (I wonder why it worked in IIS5).

Thanks.
-----Original Message-----
The option of "virtual" in an include file sets it to the root of theweb. Basically what you are saying is after going to the root of theweb go to it's parent folder. So just get rid of the "../" as thatshouldn't be there with a "virtual" include.

JR wrote:
Hi, I'm migrating my website to an IIS 6.0 server and all the asp pages work fine except for the ones that reference include files, even though I have "Enable parent paths"
enabled in the App/Options tab.

The include files are being called as
<!-- #include virtual="../includes/file.inc" -->
<!-- #include virtual="../includes/script.asp" -->

If I remove the parent path call it works just fine. I
don't understand why it's doing this if I clearly
have "Enable parent paths" turned on in the Application
Options tab. Is there someother place where it needs to be turned on. The error sent back to the browser is a 500
internal server error but looking at the event viewer it shows that it cannot find the include file.

Thanks.


.

Jul 19 '05 #7
Let me try explaining it again the use of virtual sends you to the root
of the web the default being wwwroot. Then you tell it yo go to "../"
which is the parent of wwwroot & the default is Inetpub. So by setting
it to virtual="../includes/*" you are basically saying go to the
includes folder in the Inetpub folder. Since it does not exist you get
the error.

an*******@discu ssions.microsof t.com wrote:
It's going one directory up because it's one directory
deep.

My structure is as follows.

wwwroot/
wwwroot/include
wwwroot/carpages

Thus the pages inside carpages need to cd .. to go one
directory up into the include directory. This code worked
perfectly fine on IIS5

-----Original Message-----
The option of "virtual" in an include file sets it to the


root of the
web. Basically what you are saying is after going to the


root of the
web go to it's parent folder. So just get rid of


the "../" as that
shouldn't be there with a "virtual" include.

JR wrote:

Hi, I'm migrating my website to an IIS 6.0 server and
all
the asp pages work fine except for the ones that
reference
include files, even though I have "Enable parent paths"
enabled in the App/Options tab.

The include files are being called as
<!-- #include virtual="../includes/file.inc" -->
<!-- #include virtual="../includes/script.asp" -->

If I remove the parent path call it works just fine. I
don't understand why it's doing this if I clearly
have "Enable parent paths" turned on in the Application
Options tab. Is there someother place where it needs to
be
turned on. The error sent back to the browser is a 500
internal server error but looking at the event viewer
it
shows that it cannot find the include file.

Thanks.


.


Jul 19 '05 #8
You're right it doesn't matter if it's one directory deep
it bases it off the root (I wonder why it worked in IIS5).

Thanks.
-----Original Message-----
Let me try explaining it again the use of virtual sends you to the rootof the web the default being wwwroot. Then you tell it yo go to "../"which is the parent of wwwroot & the default is Inetpub. So by settingit to virtual="../includes/*" you are basically saying go to theincludes folder in the Inetpub folder. Since it does not exist you getthe error.

an*******@disc ussions.microso ft.com wrote:
It's going one directory up because it's one directory
deep.

My structure is as follows.

wwwroot/
wwwroot/include
wwwroot/carpages

Thus the pages inside carpages need to cd .. to go one
directory up into the include directory. This code worked perfectly fine on IIS5

-----Original Message-----
The option of "virtual" in an include file sets it to the

root of the
web. Basically what you are saying is after going to
the
root of the
web go to it's parent folder. So just get rid of


the "../" as that
shouldn't be there with a "virtual" include.

JR wrote:
Hi, I'm migrating my website to an IIS 6.0 server and


all
the asp pages work fine except for the ones that


reference
include files, even though I have "Enable parent
paths"enabled in the App/Options tab.

The include files are being called as
<!-- #include virtual="../includes/file.inc" -->
<!-- #include virtual="../includes/script.asp" -->

If I remove the parent path call it works just fine. I
don't understand why it's doing this if I clearly
have "Enable parent paths" turned on in the ApplicationOptions tab. Is there someother place where it needs

to
be
turned on. The error sent back to the browser is a 500
internal server error but looking at the event viewer


it
shows that it cannot find the include file.

Thanks.

.


.

Jul 19 '05 #9
Because you didn't have one of the subdir's set up as it's own virtual
directory.

Jeff

<an*******@disc ussions.microso ft.com> wrote in message
news:9d******** *************** *****@phx.gbl.. .
You're right it doesn't matter if it's one directory deep
it bases it off the root (I wonder why it worked in IIS5).

Thanks.
-----Original Message-----
Let me try explaining it again the use of virtual sends

you to the root
of the web the default being wwwroot. Then you tell it

yo go to "../"
which is the parent of wwwroot & the default is Inetpub.

So by setting
it to virtual="../includes/*" you are basically saying go

to the
includes folder in the Inetpub folder. Since it does not

exist you get
the error.

an*******@disc ussions.microso ft.com wrote:
It's going one directory up because it's one directory
deep.

My structure is as follows.

wwwroot/
wwwroot/include
wwwroot/carpages

Thus the pages inside carpages need to cd .. to go one
directory up into the include directory. This code worked perfectly fine on IIS5


-----Original Message-----
The option of "virtual" in an include file sets it to the
root of the

web. Basically what you are saying is after going to the
root of the

web go to it's parent folder. So just get rid of

the "../" as that

shouldn't be there with a "virtual" include.

JR wrote:
>Hi, I'm migrating my website to an IIS 6.0 server and

all

>the asp pages work fine except for the ones that

reference

>include files, even though I have "Enable parent paths">enabled in the App/Options tab.
>
>The include files are being called as
><!-- #include virtual="../includes/file.inc" -->
><!-- #include virtual="../includes/script.asp" -->
>
>If I remove the parent path call it works just fine. I
>don't understand why it's doing this if I clearly
>have "Enable parent paths" turned on in the Application>Options tab. Is there someother place where it needs to
be

>turned on. The error sent back to the browser is a 500
>internal server error but looking at the event viewer

it

>shows that it cannot find the include file.
>
>Thanks.
>
>

.


.

Jul 19 '05 #10

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

Similar topics

0
2104
by: microsoft | last post by:
Hi, I have an ASP script that initiates a ADODB.Stream like below first bit gets filename from the database strAbsFile = getfilefromDB(request.querystring("fileid")) '-- create FSO object to check if file exists and get properties Set objFSO = Server.CreateObject("Scripting.FileSystemObject") '-- check to see if the file exists
36
16352
by: Thomas | last post by:
after spending countless hours trying, i give up and hope to get some help in here. on server1 i got the web myweb.com with my test.asp. in the test.asp, i'm trying to read a file from an UNC path with a FSO: Set myFile = Server.CreateObject("Scripting.FileSystemObject").GetFile("\\server2\myshare\myfile.txt") this fails with an Permission...
4
2454
by: Mark J. McGinty | last post by:
Greets, Part of the content of one of our web pages uses wingdings and Chr(239) through Chr(242) (which are little arrow outlines, though that's not really important.) It worked just fine in Windows 2000 Server, but now under Server 2003 it seems that characters above 127 get converted somehow, and our code no longer produces the desired...
12
2976
by: tshad | last post by:
I am not sure why I am getting this error: I have the following code I want to run from another include file that holds all my functions. functions.inc ************************************************************************************ <Script runat="Server"> Sub fnHeader(client As String) response.write("<!-- #include file =...
10
3472
by: Ger | last post by:
I am having problems using VB.Net's Management base object on a machine hosting Windows Server 2003. I am trying to set file permissions from a Windows Service. These files may be loacted on a local machine or somewhere on the network. I use the Management Base Object to set these permissions which works perfectly when the windows service is...
21
6861
by: one2001boy | last post by:
PostMessage() function returns ERROR_NOT_ENOUGH_QUOTA after running in a loop for 700 times, but the disk space and memory are still big enough. any suggestion to resolve this problem? thanks.
2
2758
by: Andrew Wan | last post by:
Okay, this is really weird. We have two Windows 2003 Server SP1 PCs. One hosts IIS6 website, and the other hosts our DCOM service program. Our website is ASP/XSL. An ASP page uses Msxml2.DOMDocument.4.0 to transform a XML top node via XSL stylesheet outputting to HTML. We have set up the website on-site successfully with no problems. However,...
10
2387
by: olafilink | last post by:
Hello, we're running an Win2003server with IIS6 and PHP4 in fastCGI config. When i try to use system() command to execute ffmpeg.exe it works ok when i run the PHP script from the commandline on the server, but when i run it from the webbrowser i get a return value: 128 and nothing happens. I checked for all the security settings, and...
2
6346
by: akhilesh.noida | last post by:
I am trying to compile glibc-2.5 for ARM based board. But I am getting errors while configuring it. Please check and give your inputs for resolving this. configure command : $ ../glibc-2.5/configure --prefix=/mnt/new/Mars/glibc_HQ_test/GLIBC/ install/ --with-__thread --enable-kernel=2.6.11 --enable-shared
0
7918
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...
0
7843
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...
0
8206
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. ...
1
7967
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...
1
5713
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
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...
0
3840
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...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.