On Feb 26, 8:13*am, "TOUDIdel" <toudi...@oDWA.plwrote:
Uzytkownik "withers" <ro...@upperbridge.co.uknapisal w wiadomoscinews:e0********************************* *@34g2000hsz.googlegroups.com...
If I run Server.MapPath("/") on my operational Internet server I get,
correctly, the physical path to the directory my page is in (d:\....
\...\htdocs).
If I run Server.MapPath("/") on my intranet server, my localhost, I
get c:\inetpub\wwwroot, but my webpages are NOT in this folder, they
are in c:\webtest.
How to I establish the correct physical root on my intranet server?
c:\inetpub\wwwroot is probably correct physical path in that case. Check in
your IIS configuration console what exactly indicates wwwroot path and
change to proper if need.
--
td
All my websites are in a folder c:\WebTest on my local host. For
example, the files for Web1.com are in c:\WebTest\Web1.com.
If I look at the properties of Web1.com, on the Home Directory tab the
local path is set to c:\WebTexs\Web1.com.
If I run Server.MapPath("/") from a page in Web1.com, the result is c:
\inetpub\wwwroot.
In IIS, all the virtual directories are in a folder Default Web Site.
The properties of this show a local path of c:\inetpub\wwwroot.
Server.MapPath("/") will always resolve to the local path I set in
Default Web Site properties.
I want Server.MapPath("/") to resolve to the website that runs this
command, in my example, resolve to c:\WebTest\Web1.com.
How do I set up IIS so that Server.MapPath uses the local path of the
website rather than the local path of the Default Web Site
properities?
I have noticed on my operation server in the internet, the local path
setting in Default Web Site properties is greyed out. Server.MapPath
gives the correct answer on this server.
Thanking you in anticipation.