System.Web.HttpContext vs System.Web.MVC.HttpContext

My controller has statements declared this way (not sure if order makes sense)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

I am trying to access an HTTPContext and noticed that I cannot even get an HTTPContext.Current

There seems to be two HTTPContext variables, and MVC is a use case. I had to fully qualify the object namespace in order to be able to compile the application.

  • Why are there two HTTPContext variables?
  • Does any object with which my conflicting object will be compiled describe the use order?
+4
source share
1 answer

System.Web.HttpContext - , Current, .

System.Web.Mvc.HttpContext. , HttpContext, Controller. , , "" . , , HttpContext.Current.

, : , , - . , . "" , , , using . using , .

+11

All Articles