title: ASP.NET CodeDom provider could not be located error
body: <p>I'm facing an ASP.NET error while deploying on a server:</p>
  
  <blockquote>
    <p>The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located.</p>
  </blockquote>
  
  <p>This error only takes place on a specific server, when executing it locally or on another server it works just fine.</p>
  
  <p><strong>packages.config CodeDom line</strong></p>
  
  <pre><code>  &lt;package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="2.0.0" targetFramework="net461" /&gt;
  </code></pre>
  
  <p><strong>Web.Config CodeDom line</strong></p>
  
  <pre><code>  &lt;compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701"/&gt;
  </code></pre>