Solving development problems  |  About this blog

Archive for the ‘Request is not available in this context’ tag

System.Web.HttpException: Request is not available in this context

Use HttpContext.Current.Request instead of Request

i.e.

HttpContext.Current.Request.UserHostAddress

not

Request.UserHostAddress