I\'m using VS 2013 RTM Ultimate, and when I try to add a Controller to my MVC 5 project I get the following error:
\"There was an error running the selected code generat
This situation is arriving when you already have T4Scaffolding used in one of your projects in the solution and you added the web project later. Uninstalling T4Scaffolding and T4Scaffolding.Core from package manager console resolved the issue. Somehow I lost the reference to EntityFramework also while uninstgalling the scaffolding, so I had to add the EntityFramework reference again.