c# - Asp.net MCV4 framework issue -
i made web site using vs 2012 , mvc4, work localhost when published , put host doesn't work. iis confiurations same. gives me error lines:
this error;
configuration error description: error occurred during processing of configuration file required service request. please review specific error details below , modify configuration file appropriately. parser error message: 'targetframework' attribute in <compilation> element of web.config file used target version 4.0 , later of .net framework (for example, '<compilation targetframework="4.0">'). 'targetframework' attribute references version later installed version of .net framework. specify valid target version of .net framework, or install required version of .net framework. source error: line 20: </appsettings> line 21: <system.web> line 22: <compilation targetframework="4.5" /> line 23: <httpruntime targetframework="4.5" /> line 24: <authentication mode="forms">
thank advice in advance
change tag 4.0:
<compilation targetframework="4.0" />
and remove tag:
<httpruntime targetframework="4.5" />
Comments
Post a Comment