Dave - Yes, I am sure that you are right. 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 (again, perhaps this is just not possible).
Cheers - george --- In [email protected], "David Smart" <[EMAIL PROTECTED]> wrote: > This doesn't account for its working on your local machine - where the default web site is the local machine. > > Yes, you should be able to create a duplicate of the web site on your machine. Just grab the whole directory structure, starting with the directory that holds the main web site file, and taking all sub-directories. Bring that across to your default IIS local website directory - e.g. wwwroot. If the directory structure is the same and in the same relationship with the site's default directory, everything should work. > > I actually duplicate my server's IIS directory structure exactly onto my local machine when I'm testing locally. Doing that takes all the guesswork out of it. > > Dave S > > ----- Original Message ----- > From: GLSmyth > To: [email protected] > Sent: Thursday, September 22, 2005 11:19 PM > Subject: Re: [ASP] Include Virtual Not Found > > > Dave - > > "sesius/" worked because that is the website folder within the Default > Web Site. It was my understanding that the use of "virtual" would > allow for the file to be found anywhere within the website, with the > path being relative to the site's root. From what I can tell, locally > through IIS the Default Web Site is always considered to be the root. > I have two websites within there, at the same level as IISHelp. > > Perhaps if I could create a site at the same level as the Default Web > Site then that would solve things, but I do not see a means for doing > this (perhaps it is not possible). > > Cheers - > > george > > > --- In [email protected], "David Smart" > <[EMAIL PROTECTED]> wrote: > > Unless you specify an absolute path, the include will be relative to > where the parent file came from. > > > > The best way to test in a local IIS is to take a copy of the whole > site, with the same directory structure, and test the files from > within their correct places. This means that relative file references > will work fine, and will continue to work when you put the changed > files back onto the server. > > > > As to why adding "sesius/" to your string made things work ... not > sure. It won't have taken you back to the server. I can only assume > that there is a sesius sub-directory sitting in the directory that > you're running the file from. > > > > BTW your file/virtual problems should also go away if your duplicate > the entire site in local IIS. > > > > Dave S > > > > ----- Original Message ----- > > From: GLSmyth > > To: [email protected] > > Sent: Thursday, September 22, 2005 1:41 AM > > Subject: [ASP] Include Virtual Not Found > > > > > > I would like to use <!-- #include virtual="DBConn.asp" --> to get to > > my connection string. My code works with "file" and "virtual" on the > > server, but only "file" works locally on my computer under Windows XP > > IIS (I am getting the error message "The include file 'DBConn.asp' was > > not found." > > > > Things work when I change the string to "<!-- #include > > virtual="sesius/DBConn.asp" -->" > > > > I have gone to IIS and changed the Starting Point to "Default > > Web\sesius" but that did not appear to make a difference. > > > > My assumption is that IIS does not know that sesius is the root of the > > website, and I do not know how to give it this information. > > > > I would like to use the initial string above because then the code for > > the test bed on my computer and the server would be the same. > > > > Any ideas how I can get this to work? > > > > Thanks - > > > > george > > > > > > > > > > > > > --------------------------------------------------------------------- > > Home : http://groups.yahoo.com/group/active-server-pages > > --------------------------------------------------------------------- > > Post : [email protected] > > Subscribe : [EMAIL PROTECTED] > > Unsubscribe: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > > > > > > > > SPONSORED LINKS Active server page web hosting Active server page > hosting Active server pages > > Active server page asp Active server page training > > > > > > > ------------------------------------------------------------------------------ > > YAHOO! GROUPS LINKS > > > > a.. Visit your group "active-server-pages" on the web. > > > > b.. To unsubscribe from this group, send an email to: > > [EMAIL PROTECTED] > > > > c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service. > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > [Non-text portions of this message have been removed] > > > > > > --------------------------------------------------------------------- > Home : http://groups.yahoo.com/group/active-server-pages > --------------------------------------------------------------------- > Post : [email protected] > Subscribe : [EMAIL PROTECTED] > Unsubscribe: [EMAIL PROTECTED] > --------------------------------------------------------------------- > > > > ------------------------------------------------------------------------------ > YAHOO! GROUPS LINKS > > a.. Visit your group "active-server-pages" on the web. > > b.. To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > > > ------------------------------------------------------------------------------ > > > > [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/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/
