2

we had a web application deployed under virtual directory. Now we want to move it to it's own website for SSL configuration.

However, there are lots of HttpContext.Current.Request.ApplicationPath as a result the application is not working as expected.

Could anyone please help me with what's the alternative to HttpContext.Current.Request.ApplicationPath to find root of website?

On virtual directory setup it gives correct path to images whereas on website it just gives

http://images

which is not good.

Thanks heaps.

Nil Pun
  • 17,035
  • 39
  • 172
  • 294

1 Answers1

0

You can try this one

HttpRuntime.AppDomainAppPath

and alternative

HttpContext.Current.Request.PhysicalApplicationPath
Aristos
  • 66,005
  • 16
  • 114
  • 150