webconfig中的配置错误

问题描述:

我有一个小型的Web应用程序用于报告和即时通讯遇到问题。当我在我的本地机器上运行应用程序时,它可以工作,但是当它在我们的服务器上时,它不会。我的应用程序使用.net 3.5框架和服务器安装到它的框架...webconfig中的配置错误

这里的错误

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: Unrecognized attribute 'type'. 

Source Error: 


Line 2: <configuration> 
Line 3:  <configSections> 
Line 4:   <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> 
Line 5:    <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> 
Line 6:     <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> 


Source File: d:\inetpub\wwwroot\harrisinterface\web.config Line: 4 


-------------------------------------------------------------------------------- 
Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407 

你说,你正在使用.NET 3.5。该错误表示您的虚拟目录正在使用.NET 1.1(Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407)。检查你的虚拟目录配置,一切都应该运行良好。

您的网站在.NET 1.1下运行;你应该启用.NET 2.0。

这里是一个教程:Where's my .NET 3.5 (on IIS), Dude?

+0

是的,检查你是否使用实际的框架。 – Chris 2010-01-11 21:40:23