Asp.net MCV4框架问题 [英] Asp.net MCV4 framework issue
本文介绍了Asp.net MCV4框架问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在使用VS 2012和MVC4一个网站,这是我的工作,本地主机,但是当我发表,并把我的主机这是行不通的。的IIS confiurations相同。但它给我这个错误行:
这是错误;
配置错误
说明:该请求提供服务所需的配置文件的处理过程中发生错误。请检查下面的特定错误详细信息并适当地修改配置文件。分析器错误信息:在&lt在'targetFramework'属性;编译> Web.config文件的元素只用来针对4.0版及更高版本的.NET Framework(例如,'<编译targetFramework =4.0>')。在'targetFramework'属性目前引用版本晚于.NET Framework的安装版本。指定.NET Framework的一个有效的目标版本,或者安装.NET Framework所需的版本。源错误:
第20行:LT; /的appSettings>
第21行:LT;的System.Web>
第22行:LT;编译targetFramework =4.5/>
第23行:LT;的httpRuntime targetFramework =4.5/>
第24行:LT;身份验证模式=表格>
感谢您的咨询提前
解决方案
我已经在服务器中安装nopCommerce 2.80类似的问题
。
我用IIS7网。 4.0综合池。而刚刚安装.NET 4.5 WebMatrix的从产品展示 - >框架部分。重新启动是必需的。
然后,它开始工作。
我用IIS7网。 4.0综合池。而刚刚安装.NET 4.5 WebMatrix的从产品展示 - >框架部分。重新启动是必需的。
然后,它开始工作。
I made a web site using VS 2012 and MVC4, it is work my localhost but when i published and put my host it doesn't work. IIS confiurations are same. But it gives me this error lines:
This is error;
Configuration Error
Description: 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 <compilation> element of the Web.config file is used only to target version 4.0 and later of the .NET Framework (for example, '<compilation targetFramework="4.0">'). 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" />
Line 23: <httpRuntime targetFramework="4.5" />
Line 24: <authentication mode="Forms">
Thank you for your advice in advance
解决方案
I had similar issue installing nopCommerce 2.80 on server. I use IIS7 net. 4.0 integrated pool. And just installed .net 4.5 from WebMatrix Products->Frameworks section. Restart will be required. Then it started to work.
这篇关于Asp.net MCV4框架问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文