Has anyone else encountered this in VS 2013? Any way of fixing?
Create a new asp.net web application with visual studio 2013.
Under "Add folders and core references for:", check MVC. Click OK.
Open the web.config and copy the contents.
Add a new text template to your project called "Web.tt"
Paste in the contents of your web.config and change the output extension to be .config. all you need is this line (and then your web.config contents after it): <#@ output extension=".config" #>
Make sure there is no whitespace between the output extension line and the first line of your pasted web.config.
Delete the web.config (including release and debug build targets) so that web.tt is all you have for web.config.
Right click on Web.tt and run custom tool. Make sure web.config is created and now part of your project.
Right click on Controllers folder and select Add -> Controller...
Select MVC 5 Controller - Empty and Click Add.
Name your controller and click Add.
Results:
Error There was an error running the selected code generator: ' Value does not fall within the expected range.'