I was just hunt down by a minor bug in my code and couldn’t figure out what was happening. I’m using Dependency Injection to inject the HttpContextBase into a service call so I can more easily unit test it. So I was setting it up like this: 1: ObjectFactory.Initialize(x =>
2: {
3: x.For<HttpContextBase>().Use(new HttpContextWrapper(HttpContext.Current));
4: ...