How do I fix the “compilerVersion” IIS error?

前端 未结 7 1505
借酒劲吻你
借酒劲吻你 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:41

    In my case it was a child site under the Default Website and although the default website settings were set at ASP.NET 4.0, the web.config file was set for 2.0 and 3.5. Changing the web.config file to use 4.0 fixed it. Use this for reference: ASP.NET 4 Breaking Changes

提交回复
热议问题