We currently use this line of code to get the current applications url in the Application_Start event.
string sApplicationURL = HttpContext.Current.Request.Url.Scheme + "://"
+ HttpContext.Current.Request.Url.Authority
+ HttpContext.Current.Request.ApplicationPath;
I just recently found out that in IIS7.0 the Request object is no longer available when the Application_Start event is fired.
Is there another way to get the current applications url without using the Request object?
Thanks