Web配置中的配置错误

时间:2010-01-11 21:19:52

标签: .net-3.5

我有一个小型网络应用程序用于报告并且遇到问题。当我在我的本地机器上运行应用程序时,它可以工作,但是当它在我们的服务器上时却没有。我使用.Net 3.5框架和服务器的应用程序已经安装了框架...

这是错误

    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 

2 个答案:

答案 0 :(得分:1)

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

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

答案 1 :(得分:0)

您说您使用的是.NET 3.5。错误表明您的虚拟目录使用的是.NET 1.1(Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407)。检查您的虚拟目录配置,一切运行正常。