title: How to fix configuration error 'The CodeDom provider type could not be located' and parsing error 'Could not load type' leading to each other?
body: <p>I'm currently working on a project, that includes ASP.net, JS, C#, Html and etc. My project was working fine and had no problem to load whats so ever and neither had any problems running using IIS express (10.0). I added a few more classes and edited a web form, and when I tried to run the code in order to check my work, I had the 'Server Error in '/' Application. Configuration Error' thrown.</p>
  
  <blockquote>
    <p>Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
    Parser Error Message: The CodeDom provider type 
    "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider,
    Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0,
    Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be
    located.</p>
    
    <p>Source Error:</p>
  </blockquote>
  
  <pre><code>Line 31: &lt;system.codedom&gt;
  Line 32: &lt;compilers&gt;
  Line 33: &lt;compiler language="c#;cs;csharp" extension=".cs"
  Line 34: type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  Line 35: warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701"/&gt;
  </code></pre>
  
  <blockquote>
    <p>Source File: C:\Users\Dell\Desktop\School\מדעי המחשב\WebProject\Project\web.config    Line: 33</p>
    
    <p>Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4075.0</p>
  </blockquote>
  
  <p>when I tried searching for a solution, I've found a few, but they all led me to a "Parser error", 'Could not load type'.</p>
  
  <blockquote>
    <p>Description: An error occurred during the parsing of a resource
    required to service this request. Please review the following specific
    parse error details and modify your source file appropriately.</p>
    
    <p>Parser Error Message: Could not load type 'Project.Global'.</p>
    
    <p>Source Error:</p>
  </blockquote>
  
  <pre><code>Line 1:  &lt;%@ Application Codebehind="Global.asax.cs" Inherits="Project.Global" Language="C#" %&gt;
  </code></pre>
  
  <blockquote>
    <p>Source File: /global.asax    Line: 1</p>
    
    <p>Version Information: Microsoft .NET Framework Version:4.0.30319;
    ASP.NET Version:4.8.4075.0</p>
  </blockquote>
  
  <p>No matter what method nor approach I'm trying to use in order to solve any of these problems, I always seem to get back to the second one...
  Could anyone please help? </p>