I am having problems using HttpContext.Cur rent.Request.Ur l.Host.
I have some code that does this...
if (HttpContext.Cu rrent != null)
{
subdomain = HttpContext.Cur rent.Request.Ur l.Host;
}
Now if I put a break point on the if statement I get this error for the
HttpContext.Cur rent.Request. Request: 'HttpContext.Cu rrent.Request' threw
an exception of type 'System.Web.Htt pException'
Now if I comment out the subdomain = HttpContext.Cur rent.Request.Ur l.Host;
and stop at the same break point it works fine.
Now this seems to be a problem with the 3.5 framework because after I
installed it, this code seemed to not work any more.
Any idea's?
TIA,
Brett
I have some code that does this...
if (HttpContext.Cu rrent != null)
{
subdomain = HttpContext.Cur rent.Request.Ur l.Host;
}
Now if I put a break point on the if statement I get this error for the
HttpContext.Cur rent.Request. Request: 'HttpContext.Cu rrent.Request' threw
an exception of type 'System.Web.Htt pException'
Now if I comment out the subdomain = HttpContext.Cur rent.Request.Ur l.Host;
and stop at the same break point it works fine.
Now this seems to be a problem with the 3.5 framework because after I
installed it, this code seemed to not work any more.
Any idea's?
TIA,
Brett
Comment