As we know, the virtual manager can be associated with a folder with a different name, how can I get the physical path to the virtual directory?
I tried with HttpContext.Current.server.MapPath, but it returns me the physical path plus the path that I send to the parameter, even if the directory does not exist at all or exists with a different name.
Example:
C: \ blabla \ sites \ Application1 \ Imaageesss - On disk
Application1 \ Images (In ISS, my virutal directory)
But if I do MapPath on "/ Images", it will never give me C: \ blabla \ Sites \ Application1 \ Imaageesss, but C: \ inetpub \ wwwroot \ Images that are not a real directory related to.
Vinhent
source share