问题描述
刚开始报的错误如下:ServerErrorin'/'Application.ConfigurationErrorDescription:Anerroroccurredduringtheprocessingofaconfigurationfilerequiredtoservicethisrequest.Pleasereviewthespecificerrordetailsbelowandmodifyyourconfigurationfileappropriately.ParserErrorMessage:The'targetFramework'attributeinthe<compilation>elementoftheWeb.configfileisusedonlytotargetversion4.0andlaterofthe.NETFramework(forexample,'<compilationtargetFramework="4.0">').The'targetFramework'attributecurrentlyreferencesaversionthatislaterthantheinstalledversionofthe.NETFramework.Specifyavalidtargetversionofthe.NETFramework,orinstalltherequiredversionofthe.NETFramework.SourceError:Line23:<system.web>Line24:<httpRuntimetargetFramework="4.5"/>Line25:<compilationdebug="true"targetFramework="4.5"/>Line26:<authenticationmode="Forms">Line27:<formsloginUrl="~/Account/Login"timeout="2880"/>我把targetFramework="4.5"都改成“targetFramework="4.0"”又变成了这个错误ServerErrorin'/'Application.ConfigurationErrorDescription:Anerroroccurredduringtheprocessingofaconfigurationfilerequiredtoservicethisrequest.Pleasereviewthespecificerrordetailsbelowandmodifyyourconfigurationfileappropriately.ParserErrorMessage:Unrecognizedattribute'targetFramework'.Notethatattributenamesarecase-sensitive.SourceError:Line22:</appSettings>Line23:<system.web>Line24:<httpRuntimetargetFramework="4.0"/>Line25:<compilationdebug="true"targetFramework="4.0"/>Line26:<authenticationmode="Forms">按网上的解决方法,网站的asp.net版本我已经改成了4.0,可是还不行啊,很急,求大神指导
解决方案
本帖最后由 ykpiverson 于 2013-04-25 18:13:48 编辑
解决方案二:
引用楼主ykpiverson的回复:
本帖最后由ykpiverson于2013-04-2518:13:48编辑刚开始报的错误如下:ServerErrorin'/'Application.ConfigurationErrorDescription:Anerroroccurredduringtheprocessingofa……
安装4.0.netframeworkiis6也需要重新配置。给你个连接自己检查一下http://forums.asp.net/p/1551597/3809769.aspx
解决方案三:
跟你一样的问题,郁闷啊