View Full Version : MapPath different on local server and discountasp
joer00
06-28-2004, 11:58 AM
On my local iis I have a virtual web for my application. I use server.mappath("/") which is c:/inetpub/wwwroot.
Running the app on discouantasp.net results in path e:/inetpub/wwwroot/application.
Why is this different, what can I do to have the same path on my local machine ??
Joe
bruce
06-29-2004, 04:48 AM
server.mappath function should give you the physical path to your root.
if you use server.mappath across the board, you should not need to change your code between server
[b]quote:Originally posted by joer00
On my local iis I have a virtual web for my application. I use server.mappath("/") which is c:/inetpub/wwwroot.
Running the app on discouantasp.net results in path e:/inetpub/wwwroot/application.
Why is this different, what can I do to have the same path on my local machine ??
Joe
</blockquote id="quote"></font id="quote">
keydyanmics
06-29-2004, 07:56 AM
I would recommend changing the drive letter on your local enviornment to get in sync. I faced a similar problem in ASP.NET. The good part was that I added a connection string entry in Web.Config file. I have two copies for each environment and does not need be changed.
Saves me lot of double work.
vBulletin® ©Jelsoft Enterprises Ltd.