The following line:
string url = HttpContext.Current.Request.Url.AbsolutePath.ToLower();
results in an unauthorizedaccess exception.
This is odd to me, especially since I can hover over the variable and see its value.
This is inside a custom class inherited from IHttpModule that runs as aspx are loaded. I'm using this to get the user requesting the page and the page being requested. The line of code above is intended to detect which page is being requested.
Any ideas? This seems very weird to me.