title: Razor Compiler Warning/Errors - ASP.NET MVC 4
body: <p>I have an issue which seems to have been reported here:</p>
  
  <p><a href="https://stackoverflow.com/questions/4158573/need-razor-view-engine-auto-complete-to-work-in-a-class-library">Need razor view engine auto-complete to work in a class library?</a></p>
  
  <p>My issue is the following Warning:</p>
  
  <blockquote>
    <p>G:\Accountable\Accountable\Views\LedgerUser\EditorTemplates\LedgerServiceViewModel.cshtml:
    ASP.NET runtime error: There is no build provider registered for the
    extension '.cshtml'. You can register one in the
     section in machine.config or web.config.
    Make sure is has a BuildProviderAppliesToAttribute attribute which
    includes the value 'Web' or 'All'.</p>
  </blockquote>
  
  <p>This issue is apparent in all my views. Sample images below.</p>
  
  <p><img src="https://i.stack.imgur.com/dL4vn.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/bRcX7.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/MVc9n.png" alt="enter image description here"></p>
  
  <p>Now all posts and references online that I have found are referencing to adding various Web.config (as mentioned in the previous post) options, but this doesn't seem to work, as I have these configurations defaulted in the project. Here are my Web Configs:</p>
  
  <p><a href="http://pastebin.com/9uCEFsQS" rel="nofollow noreferrer">Main Web.config</a></p>
  
  <p><a href="http://pastebin.com/8yz4gJYv" rel="nofollow noreferrer">View root Web Config</a></p>
  
  <p>I think this issue maybe while im also getting the following compiler errors on the Views:</p>
  
  <blockquote>
    <p>The name 'Html' does not exist in the current context</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/JcMs4.png" alt="enter image description here"></p>
  
  <p>What am I doing wrong?</p>