when I am working in debug mode of .net IDE it is working fine, but when i tried to launch the project from IE, it is taking different path
ex:
below code works well in debug mode, but unable to launch in IE directly (http://localhost/WebProj/login.aspx)
Pathtype A:
Expand|Select|Wrap|Line Numbers
- HttpContext.Current.Server.MapPath(@"\Configuration\xyz.xml");
Pathtype B:
Expand|Select|Wrap|Line Numbers
- HttpContext.Current.Server.MapPath("") + @"\Configuration\xyz.xml";
Help me please.