After upgrading from MVC 4 to MVC 5, my application (when started from within Visual Studio) gives the following error. It might also be worth noting that I am hosting both
I was able to resolve the issue by adding the following to the appSettings section as per the response to this question.