views:

477

answers:

2

Hi to all, to get some images' path server side i use HttpContext.Current.Request.ApplicationPath to build up a correct path.

It works on the production environment, but it gets resolved as "/" on the developement / debug server provided by VS2008. Any Help?

A: 

You can use

HttpContext.Curent.Server.MapPath("/*****"); <- this will give you correct path..

Akash Kava
A: 

Just use HttpServerUtility.MapPath("~/images"). The "~" denotes application root.

Anton Gogolev