Today I started a new Episerver project and this issue always hunt me
Server Error in ‘/’ Application.
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’.
After dig a little bit, a found the solution
Open web.config
Look for the following line :
<compilation debug=”true” targetFramework=”4.7.2″ optimizeCompilations=”true” />
change the parameter optimizeCompilations to false and be happy !