The root of your website is wherever you have the particular site set
to. Creating a virtual directory doesn't change the root for files
within that directory. So if your website (Default Web Site in this
case) points to C:\inetpub\wwwroot for instance and you create a virtual
directory in that website pointed to C:\myVirtDir, referencing the root
("/") in the files in myVirtDir will point at c:\inetpub\wwwroot.

Virtual directories aren't new websites, they are simply subfolders of
their parent website. If you want a completely separate website you need
to create a new website within IIS, not a new virtual directory. If
you're on XP I don't think it allows you to have any other sites than
the Default Website, but I might be wrong.

Dan

-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of GLSmyth
Sent: 22 September 2005 16:36
To: [email protected]
Subject: Re: [ASP] Include Virtual Not Found

Shawn -

Thanks for the response.  I tried that but could not get it to work -
perhaps I goofed.

I right-clicked on Default Web Site and selected New -> Virtual
directory and created one called sesi which points to sesius. 
DBConn.asp is located within the root of sesius so I added the code
'<!-- #include virtual="/DBConn.asp" -->' (I also tried it without the
slash), but when trying it I get the error message, "The include file
'/DBConn.asp' was not found.
sesi/Administration/WhatsNew/WhatsNewEdit.asp, line 2"

Am I putting this together incorrectly?

Cheers -

george


--- In [email protected], "Shawn K. Hall"
<[EMAIL PROTECTED]> wrote:
> Hi George,
> 
> > The reason I really do not want to do this is that I work on 
> > multiple websites, which is why I need to have the sites within the 
> > root.  If I could figure out how to tell the system that the folder 
> > is the root, as opposed to the Default Web Site...
> 
> I think what you're wanting to do is use a mapped virtual directory. I

> do this with all of my sites to include my common programming 
> libraries without having to duplicate code for every site on the 
> server. To do this, create the mapped folder in IIS, then use include 
> virtual with a rooted path:
>  <!-- #include virtual="/shared/library.asp" -->
> 
> Regards,
> 
> Shawn K. Hall
> http://12PointDesign.com/
> http://ReliableAnswers.com/




------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet
Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------

 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links



 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to