I have an issue with Autofac. The documentation clearly states that when using Web API 2 and OWIN you must not use GlobalConfiguration.Co
Ok, I figured this out. I will post the answer here incase anyone else has this issue.
As the documentation stated, you can't use GlobalConfiguration
anywhere....
so I did a search and I found it somewhere else.
I had this:
GlobalConfiguration.Configure(WebApiConfig.Register);
which should have been:
WebApiConfig.Register(config);
When I fixed that, I was able to use the proper
config.DependencyResolver = new AutofacWebApiDependencyResolver(container);