c# - System.Web.HttpContext.Current does not exist -


i'm trying info users in asp.net mvc application visual studio 2015.

when try to info request

    system.web.httpcontext.current req = new system.web.httpcontext.current(); 

i error error cs0426 type name 'current' not exist in type 'httpcontext'

anyone know how fix this?

if want current context

system.web.httpcontext currentcontext = system.web.httpcontext.current; 

if want create 1 (for reason, test)

system.web.httpcontext newcontext = new system.web.httpcontext(     new system.web.httprequest("", "http://example.com", ""),     new system.web.httpresponse(new system.io.stringwriter())     ); 

Comments