IIS的配置问题

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IIS的配置问题相关的知识,希望对你有一定的参考价值。

Server Error in '/' Application.
--------------------------------------------------------------------------------

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 75: </appSettings>
Line 76: <system.web>
Line 77: <compilation targetFramework="4.5">
Line 78: <assemblies>
Line 79: <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

Source File: D:\DefaultWeb\web.config Line: 77

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

谁知道这是怎么回事啊 求解决

参考技术A 你系统的net的版本和你iis的版本不匹配, 或者你吧你的net 更新到最新版本试试 参考技术B 站点名 --> 基本设置 --> Application pool: 选 ASP.NET V4.0 --> 点击OK 参考技术C 1‘服务器上要安装.NET Framework4.0
2、当前网站的IIS参数里要选择.NET Framework4.0
参考技术D 更新.NET Framework为最新版本或4.0以上版本。 第5个回答  2015-01-14 你的web.config targetFramework 配置太低呢 请配置成4.0

以上是关于IIS的配置问题的主要内容,如果未能解决你的问题,请参考以下文章

问题记录IIS配置项

iis 配置 rewrite

iis应该怎么配置?

win7配置IIS问题

IIS8.0 配置问题

iis配置问题