Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with virtual directory

Status
Not open for further replies.
Sep 25, 2002
159
US
Hi,

I created a virtual directory in IIS on a Windows 2003 server called 'myFiles'. I cannot get the <!--#include virtual--> tag to work..

If I do this: <!-- #include file="/myFiles/SimpleChart2_1_VB.inc" -->

The include file '/myFiles/SimpleChart2_1_VB.inc' was not found.

The .inc file definitely is in the directory that I designated as the virtual directory.
Same thing if I use this syntax: <!-- #include file="\myFiles\SimpleChart2_1_VB.inc" -->

What am I doing wrong?
 
do this:

<!-- #include virtual="/myFiles/SimpleChart2_1_VB.inc" -->

-DNG
 
I received the same exact error 'The include file '/myFiles/SimpleChart2_1_VB.inc' was not found.'

This 'SimpleChart2_1_VB.inc' files is actually in a physical directory called 'includes' that I desisnated as the virtual directory with an alias of 'myFiles'.

When I go to IIS Admin, I can see the virtual directory called 'myFiles' it has a 'gear' looking icon. When I click on it, I can see the 'SimpleChart2_1_VB.inc' file listed. I even put a regular 'test.asp' file with a few lines of text, same error.
 
This is the exact page I read in order to get the syntax down correctly. Maybe I did something wrong with setting up the virtual directory. I'll post my question in the IIS forum. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top