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

Popular posts from this blog

java - Unable to make sub reports with Jasper -

scala - play framework: Modules were resolved with conflicting cross-version suffixes -

Save and close a word document by giving a name in R -