I\'ve found myself having a requirement to configure log4net based on a file relative to the physical location of the running ASP.NET web application. We like to start the l
Try HttpRuntime.AppDomainAppPath. For more info, read IIS7 Integrated mode: Request is not available in this context exception in Application_Start posted by Mike Volodarsky.