I am running a .NET 4.5 project in VS 2013. Why is the following code in error?
var w = Request.Properties["MS_HttpContext"] as System.Web.HttpContextWrapper;
string IP = w?.Request.UserHostAddress; //fail to compile
I found this code on this MSDN blog.