asp.net web的配置错误 [英] asp.net web-config error

查看:185
本文介绍了asp.net web的配置错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个asp.net项目还是问题。在Visual Studio中,当我开始调试它是所有好的和页面的工作,但是,当我尝试在IIS7 showse此错误。

I have still problem with asp.net project. In Visual studio when i start debug it is all good and page working but, when i try it on iis7 showse this error.

SHOW ERROR:

SHOW 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.

分析器错误信息:无法识别的属性targetframework。请注意,属性名称是区分大小写的。

Parser Error Message: Unrecognized attribute 'targetframework'. Note that attribute names are case-sensitive.

源错误:

Line 18:     </connectionStrings> 
Line 19:     <system.web> 
Line 20:       <compilation debug="true" targetframework="4.0" /> 
Line 21:     </system.web> Line 22: 

源文件:C:\\的Inetpub \\ wwwroot的\\ web.config行:20

Source File: C:\inetpub\wwwroot\web.config Line: 20

看来问题targetFramework但我不知道我是否需要配置IIS服务器或东西CHANE在我的网络配置。

It seems problem with targetFramework but i do not know if i have to configure iis server or something chane in my web-config.

THX。

推荐答案

更改为您的网站的应用程序池的.NET版本。
它必须是.NET 4.0,而不是2.0 .NET
查看应用程序池的列表(IIS 7)

Change the .NET version on the Application pool for your website. It must be .NET 4.0, not the .NET 2.0 View a List of Application Pools (IIS 7)

这篇关于asp.net web的配置错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆