I've been trying to get the application path for my project on the Application_Start event in the global asax I can use server.mappath on pages that aren't routed but when i am on a routed page i get the new virtual path is there a way of getting the application path on startup i can't use Request or session or HttpContext.items[key] at that level does anyone know what to do
This is the solution: http://msdn.microsoft.com/en-us/library/system.web.hosting.hostingenvironment.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With