Target Framework Version Error

×

Error Message:

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 'targetFramework' attribute in the element of the Web.config file is used only to target version 4.0 and later of the .NET Framework (for example, ''). The 'targetFramework' attribute currently references a version that is later than the installed version of the .NET Framework. Specify a valid target version of the .NET Framework, or install the required version of the .NET Framework.

Source Error:

Line 20:   appSettings>
Line 21:   <system.web>
Line 22:     <compilation targetFramework="4.5.1" />

Solution:

  • Install the correct version of .net (4.5.1 for this version)
  • If still recieving the error, verify that the correct version of .net is installed - https://msdn.microsoft.com/en-us/library/hh925568(v=vs.110).aspx
  • If the incorrect version is installed then download an offline .net installer for the correct version and attempt that