My controller has usings declared like this (not sure if order matters)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
I am trying to access HTTPContext and noticed that I can't even get HTTPContext.Current
It seems that there are two HTTPContext variables and the MVC one was taking precedent. I had to fully qualify the object's namespace in order to get the app to compile.
- Why are there two HTTPContext variables?
- Does the order of the usings affects which object my conflicted object will compile with?