Server.MapPath returns a different value than I expected

161 views Asked by At

In our ASP.NET application, we use this code:

Server.MapPath("/") = C:\myappsFolder\myapp\web\

But, how come Server.MapPath("/Token") returns the following ?

Server.MapPath("/Token") = C:\myappsFolder\myOtherFolder\myapp\tkn 

I would think Server.MapPath("/Token") should return

C:\myappsFolder\myapp\web\Token 

Thank you

1

There are 1 answers

1
faujong On

I found the answer. There is a virtual directory Token that points to C:\myappsFolder\myOtherFolder\myapp\tkn

Thank you all for your answers