I don't think that the virtual directory thing is the problem.
I think the problem is that:
a) you have the vdir pointing to c:\documents and settings\<username>\
-and-
b) IIS is not processing the pages under your username - it is running under
IUSR_<machinename>, which doesn't have access to your user folder (only you
do, and local administrator accounts).
Try moving that virtual directory somewhere else, where the
IUSR_<machinename> actually does have permissions.
OK, if it is a vdir problem, then when you do the include, and you use the
virtual keyword, then the path needs to start from the webroot, and include
the vdir name, eg:
<!-- #include virtual="/vDirNameHere/myIncludeFileHere.asp" -->
Virtual always starts from the root of the website, and then your virtual
directory is underneath the root, so you need to include that, then the path
to the include file.
Cheers
Ken
"Donna" <anonymous.DeleteThis@discussions.microsoft.com> wrote in message
news:7C17D8EE-EBD3-4CB2-9A6C-6EA541382B26@microsoft.com...
: How do you have the include reflect that it's a virtual directory?
:
: ----- Jonathan Maltz [MS-MVP] wrote: -----
:
: You said the virtual directory is set to c:\Documents and
Settings...Did you
: mean the root, or a Virtual Directory? Because if it's a Virtual
Directory
: then the include will need to reflect that
:
: --
: --Jonathan Maltz [Microsoft MVP - Windows Server]
: <a style='text-decoration: underline;' href="http://www.imbored.biz" target="_blank">http://www.imbored.biz</a> - A Windows Server 2003 visual, step-by-step
: tutorial site
: Only reply by newsgroup. If I see an email I didn't ask for, it will
be
: deleted without reading.
:
:
: "shland" <shland.DeleteThis@comcast.net> wrote in message
: news:eXZgy9VgDHA.2072@TK2MSFTNGP10.phx.gbl...
: > Thanks, but I had already tried that... neither works...
: > Any other ideas?
: >> "Jonathan Maltz [MS-MVP]" <jmaltz.DeleteThis@mvps.org> wrote in message
: > news:ed8Kl2VgDHA.2464@TK2MSFTNGP09.phx.gbl...
: >> Try replacing your "\"s with "/"s
: >>>> --
: >> --Jonathan Maltz [Microsoft MVP - Windows Server]
: >> <a style='text-decoration: underline;' href="http://www.imbored.biz" target="_blank">http://www.imbored.biz</a> - A Windows Server 2003 visual,
step-by-step
: >> tutorial site
: >> Only reply by newsgroup. If I see an email I didn't ask for, it
will be
: >> deleted without reading.
: >>>>>> "shland" <shland.DeleteThis@comcast.net> wrote in message
: >> news:%23qWxQyVgDHA.616@TK2MSFTNGP11.phx.gbl...
: >>> Hi - I'm using SSI in some .asp pages... the SSI works perfectly
on
: my
: >> web
: >>> host, but when I try to test locally, IIS is complaining that it
can't
: >> find
: >>> the included file. I'm sure that it has something to do with
setting
: a
: >>> "root" directory properly, but as far as I can tell, I have it
set ok.
: > Any
: >>> hints? I'm running IIS under XP Pro...
: >>>>>> My SSI line looks like this:
: >>><!--#include
virtual="\mainpages\includes\ServicesCustomized.htm" -->>>>>>> The actual
path is:
: >>> c:\Document and Settings\S\My
: >>> Documents\dotDigerati\Website\mainpages\includes...
: >>>>>> In Internet Information Services the virtual directory is set
to point
: > to:
: >>> C:\Documents and Settings\S\My Documents\dotDigerati\Website
>>>>>> Anything else I need to do?
: >>>>>> Thanks in advance,
: >>> Sheryl
: >>>>>>>>>>>>>>>>>>
:
:
: .
:<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: ASP and IIS and SSI - please help