IIS 7 could not find the Microsoft.CodDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider DLL

Therefore, when deploying our web service using a custom build configuration after deployment, I get an error message:

CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, cannot be found.

when trying to view the site. Looking in the bin \ ~ configurationName ~ folder, I can find the specified DLL just fine. The error refers to these lines in my web.config:

  <system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" />
      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
    </compilers>
  </system.codedom>

, / Debug , , ( , , ), , , - QA, bin\QA, , - , , ASP.NET ?

+4
2

, , , console/windows (, "bin\Debug" ). - (, "bin" ).

, !

0

Roslyn .

, Roslyn Compiler IIS. Roslyn - .

Roslyn, !

, . fooobar.com/questions/110847/...

0

All Articles