I followed exactly the steps described in this post.
http://stacktoheap.com/blog/2013/01/19/precompiling-razor-views-in-asp-dot-net-mvc-3/
But the error is displayed below
> ASP.NET runtime error: There is no build provider registered for the extension '.cshtml'. You can register one in the <compilation><buildProviders> section in machine.config or web.config. Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value 'Web' or 'All'.
__What am I doing wrong?__
Comments: I think I found the problem! Create: http://cl.ly/NfOH 1. Add a controller `PersonController` 2. Create class ViewModel ``` public class PersonViewModel { public string Name { get; set; } } ``` 3. Create view Index.cshtml ``` @model PersonViewModel @Html.DisplayForModel(); ``` 4. Create in DisplayTemplates folder the PersonViewModel.cshtml ``` @model PersonViewModel @Html.EditorFor(p => p.Name) ``` 5. Try compile ![Image](http://cl.ly/NeL4/RazorGeneratorProblemError.jpg) > http://cl.ly/NeL4
http://stacktoheap.com/blog/2013/01/19/precompiling-razor-views-in-asp-dot-net-mvc-3/
But the error is displayed below
> ASP.NET runtime error: There is no build provider registered for the extension '.cshtml'. You can register one in the <compilation><buildProviders> section in machine.config or web.config. Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value 'Web' or 'All'.
__What am I doing wrong?__
Comments: I think I found the problem! Create: http://cl.ly/NfOH 1. Add a controller `PersonController` 2. Create class ViewModel ``` public class PersonViewModel { public string Name { get; set; } } ``` 3. Create view Index.cshtml ``` @model PersonViewModel @Html.DisplayForModel(); ``` 4. Create in DisplayTemplates folder the PersonViewModel.cshtml ``` @model PersonViewModel @Html.EditorFor(p => p.Name) ``` 5. Try compile ![Image](http://cl.ly/NeL4/RazorGeneratorProblemError.jpg) > http://cl.ly/NeL4