"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:ug**************@TK2MSFTNGP10.phx.gbl...
Still cannot duplicate it. I tried the following on my system
against some existing virtual dirs:
To make sure I'm sane ;) I tested it. Here is what I did.
Using Win2000 Pro (IIS only allows one Site, but multiple VFs)
Home path for the Default Website is "C:\Inetpub\wwwroot"
Created a Virtual Folder called "Test"
Home path for Virtual Folder is "D:\Temp"
Created an ASP file called Test.asp and placed it in "D:\Temp"
File contains the line:
<%Response.write Server.MapPath("/")%> & "<br>"
The output from the page is:
"C:\Inetpub\wwwroot"
I then added the line:
<%Response.Write Request.ServerVariables("APPL_PHYSICAL_PATH")%>
This produced:
"D:\Temp\"
So the final outcome is that using Server.MapPath will map to the Root
of the *Site*, while using
Request.ServerVariables("APPL_PHYSICAL_PATH") will map to the Root of
the *Virtual Folder*. So if the original poster of this thread uses
this instead of Server.MapPath his problem would be solved. Now I
assume that if either command is used from the Root of the Site they
will both produce the same results.
--
Phillip Windell [CCNA, MVP, MCP]
pw******@wandtv.com
WAND-TV (ABC Affiliate)
www.wandtv.com