title: .Net / IIS server error - CodeDOM Provider Type Could Not Be Found
body: <p>I have just installed Visual Studio Community 2015 and created a C# / Razor project using the C# template. This is supposed to create a 4 page sample website. The site is created correctly and runs on my development system. </p>
  
  <hr>
  
  <p>The problem comes when I deploy it and try to run it from my IIS Server. (At this point, I am just verifying that I have everything installed correctly on the server). When I load the default page on the IIS server, I am getting an IIS /  Parser error message:</p>
  
  <pre><code>The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located.
  </code></pre>
  
  <hr>
  
  <p>The error is being thrown from line 51 of the web.config file which says</p>
  
  <pre><code>Line 49: &lt;system.codedom&gt;
  Line 50: &lt;compilers&gt;
  Line 51: &lt;compiler language="c#;cs;csharp" extension=".cs"
  Line 52: 
  
  type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  Line 53: warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701"/&gt;
  </code></pre>
  
  <hr>
  
  <p>Other configuration information shown from the server is: </p>
  
  <pre><code>Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1055.0
  </code></pre>
  
  <hr>
  
  <p>I have seen discussions regarding installing the CodeDOM provider as part of Visual Studio but I don't think that that is my problem. </p>
  
  <p>It seems that I need to install something else on my IIS 7 server. The problem is, I don't exactly know what to install or where to go to get it. </p>
  
  <p>Can someone point me in the right direction please?</p>