Confused Newbie - Server.Mappath() in global.asa
Posted on 2004-04-23
Have 3 web sites (shared IP) with a common /database folder outside the 3 website paths -
My original global.asa connection string 'folder' term was
This returns the correct absolute path
(2) c:\websites\MySites\database\MyDb.mdb - - - - - - - SOMETIMES!!!
After two weeks of normal operation, all DB reliant pages stopped working,
investigation showed that the server.mappath function was returning
as if there were a virtual duplicate of the /MySites/database/ part also existing on
.../MySite1 .../MySite2 and .../MySite3 folders.
Temporarily, I have placed the absolute path directly in global.asa. If I put the
original path (1) back in global.asa, everything works for a few days and then stops.
If I catch it at the right moment, a test script definitely reveals that mappath is returning
(3), when things stop working, so I cannot rely upon it.
Bit of a newbie, so I am pretty confused, especially when my test script for mappath
does not return what I expected -
(2) c:\websites\MySites\database\MyDb.mdb - SOMETIMES!!!
I am convinced there must be something amiss with my ISP's virtual folder settings. They have been very good, but I think they to are equally perplexed with what is going on.
I hope I have given sufficient info, (5) and (7) really confuse me any help and advice will be
most gratefully appreciated.