I did the upgrade according to. http://www.asp.net/mvc/tutorials/mvc-5/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2
I get the er
The proper solution to resolve this issue is by following the steps
. Update Visual studio if you have older version to 15.5.4 (Optional)
Remove all binding redirects from web.config
Add this to the csproj file:
true true
Build.
In the bin folder, there should be a (WebAppName).dll.config file.
It should have redirects in it. Copy these to the web.config
Remove the above snipped from the csproj file again
It should work
Detailed Blog