How do I fix the “compilerVersion” IIS error?

前端 未结 7 1329
借酒劲吻你
借酒劲吻你 2020-11-28 06:04

I\'m getting this exception:

System.Configuration.ConfigurationErrorsException: The value for the \'compilerVersion\' attribute in the provider opti

相关标签:
7条回答
  • 2020-11-28 06:52

    this should help

    <configuration>
    <!--  -->
    <system.codedom>
     <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"
        type="Microsoft.CSharp.CSharpCodeProvider,System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
       <providerOption name="CompilerVersion" value="v4.0"/>
       <providerOption name="WarnAsError" value="false"/>
      </compiler>
     </compilers>
    </system.codedom>
    <!--  -->
    </configuration>
    
    0 讨论(0)
提交回复
热议问题