Need to step back one on this I think. A virtual directory is a convenience for directory placement on the server, it doesn't affect your addressing. So your virtual directory "sesi" could just as easily be a real sub-directory "sesi".
Now, on the server, your real directory is actually called "sesius", so you have a naming difference. Your directory on the test machine should either be a subdirectory called "sesius" or a virtual directory named as "sesius". If it is a virtual directory, it can also have the real name of "sesius" without trouble (or at least that's what I do on my IIS 2003 server). Stop press ... my vague memory and this article http://support.microsoft.com/?id=324287 suggest that you should be able to have more than one web site on your IIS in your test machine. I seem to recall my son playing with something similar at one stage on our local server, but the same techniques would probably work on a machine running IIS under XP. Another alternative would be to dedicate a local machine as a test server and put 2003 server on it. It wouldn't have to be a top-of-the-line machine - a reasonably recent cast-off would probably do. Dave S ----- Original Message ----- From: GLSmyth To: [email protected] Sent: Friday, September 23, 2005 3:02 AM Subject: Re: [ASP] Include Virtual Not Found Shawn - You are right, but unfortunately that's the catch. If I do that then my code will work just fine locally. However, when I upload it to the server then sesi is no longer the name of the folder in which DBConn.asp is located. This means that I need to remember to change the code before going live. My intention with this exercise is to make the local and remove code the same. I am currently doing that by using <!-- #include file="../../DBConn.asp" --> but that has the drawback where if the location of the file changes to a different level directory then the code will need to be altered to accommodate. Perhaps this will not be an issue to a great extent. I used to be Webmaster of 4,000+ pages, and whenever a group of things needed to be changed it normally involved at least numdreds of pages. In my new position we are only talking about hundreds of pages so the same situation could be handled much easier. The other difference is that since the old company hosted the site on our servers, setting things up the same was no problem. However, this is not an option for this smaller company. Bottom line is that I am just looking to minimize the possibilities of me screwing up. <g> Cheers - george --- In [email protected], "Shawn K. Hall" <[EMAIL PROTECTED]> wrote: > Hi George, > > > Thanks for the response. > > My pleasure. > > > > ...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" -->'... > > This line should be: > <!-- #include virtual="/sesi/DBConn.asp" --> > > Regards, > > Shawn K. Hall > http://12PointDesign.com/ > http://ReliableAnswers.com/ --------------------------------------------------------------------- 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 --------------------~--> 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/
