Server Error in '/' Application.

'4.0' is not a valid value for attribute 'system.codedom/compilers/compiler/ProviderOption/CompilerVersion'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Configuration.ConfigurationErrorsException: '4.0' is not a valid value for attribute 'system.codedom/compilers/compiler/ProviderOption/CompilerVersion'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ConfigurationErrorsException: '4.0' is not a valid value for attribute 'system.codedom/compilers/compiler/ProviderOption/CompilerVersion'.]
   System.Web.Compilation.MultiTargetingUtil.ReportInvalidCompilerVersion(String compilerVersion) +120
   System.Web.Compilation.MultiTargetingUtil.ValidateCompilerVersionFor40AndAbove(String compilerVersion) +9764816
   System.Web.Compilation.MultiTargetingUtil.ValidateCompilerVersionFor40AndAbove() +145
   System.Web.Compilation.MultiTargetingUtil.InitializeTargetFrameworkName() +107
   System.Web.Compilation.MultiTargetingUtil.EnsureFrameworkNamesInitialized() +153
   System.Web.Compilation.BuildManager.Initialize() +213
   System.Web.Compilation.BuildManager.InitializeBuildManager() +238
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +498

[HttpException (0x80004005): '4.0' is not a valid value for attribute 'system.codedom/compilers/compiler/ProviderOption/CompilerVersion'.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10089676
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +99
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +263


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4676.0