So far I have used:
Dim appPath = HttpContext.Current.Request.MapPath(HttpContext.Current.Request.ApplicationPath)
But today I moved my application from IIS6 to IIS7, and I got the exception "Request is not available in this context." This is due to the integrated mode pipeline in IIS7. I donβt want to go into classic mode, so I'm looking for another way to get the path to the application (which is "C: \ SVN \ L2E \ trunk \ Website").
Does anyone have an idea how I can get the full physical path of my MVC3 application?
path iis-7 asp.net-mvc-3 integrated-pipeline-mode
Michal B.
source share