我在自己的在电脑上winxp调试配置IIS程序一切正常,今天我把编好的程序放在win2003服务器上配置IIS服务程序,出现如下问题
“/”应用程序中的服务器错误。
配置错误 
说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。 
分析器错误信息: 无法识别的属性“type”。
源错误: 
行 10: <configuration>
行 11:  <configSections>
行 12:  <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
行 13:  <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
行 14:  <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
源文件: C:\Inetpub\bookManage\web.config    行: 12 
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573 我的我不知道什么原因了,开发这个程序的时候我用的是VS2008+SQL2005,我在win2003上装的是SQL2000我现在已经把数据导进去了,
在winXP下一切正常            
            
跪求高手解答。小弟谢谢了

解决方案 »

  1.   

    安装.net framework 3.5 sp1
    确认IIS内网站的asp.net 版本设置正确
      

  2.   

    好像是IIS里配置的.netFrameword版本,如web.config配置里的版本不一样
      

  3.   

    我那是不是得去网上下载一个3.5的版本的frameword啊,那先试试好不好用
      

  4.   

    嗯对,下载一个.net framework 3.5 sp1补丁,这样就不报web.config错误了。给你一个下载地址,这个也是我下载一直在用的:
    http://download.csdn.net/source/2701514
      

  5.   

    没有用啊。我在WIN2003上打了SP2补丁,然后再打.net framework 3.5 sp1补丁,还是出错了现在提示成这样了
    “/”应用程序中的服务器错误。
    --------------------------------------------------------------------------------运行时错误 
    说明: 服务器上出现应用程序错误。此应用程序的当前自定义错误设置禁止远程查看应用程序错误的详细信息(出于安全原因)。但可以通过在本地服务器计算机上运行的浏览器查看。 详细信息: 若要使他人能够在远程计算机上查看此特定错误信息的详细信息,请在位于当前 Web 应用程序根目录下的“web.config”配置文件中创建一个 <customErrors> 标记。然后应将此 <customErrors> 标记的“mode”属性设置为“Off”。
    <!-- Web.Config 配置文件 --><configuration>
        <system.web>
            <customErrors mode="Off"/>
        </system.web>
    </configuration>
     注释: 通过修改应用程序的 <customErrors> 配置标记的“defaultRedirect”属性,使之指向自定义错误页的 URL,可以用自定义错误页替换所看到的当前错误页。
    <!-- Web.Config 配置文件 --><configuration>
        <system.web>
            <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
        </system.web>
    </configuration>
     
      

  6.   

    IIS与你程序得framework版本不一致 ,你可以重新安装Framework然后重新注册一下IIS
      

  7.   

    都不行啊,这是为什么啊win2003就是通不过
      

  8.   

    在web.config里
    设置
    <customErrors mode="Off"/>看具体的错误信息,一般是数据库连接的问题
      

  9.   


    我到服务器上去看过了错误是这样的
    “/”应用程序中的服务器错误。
    配置错误  
    说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。  
    分析器错误信息: 无法识别的属性“type”。
    源错误:  
    行 10: <configuration>
    行 11: <configSections>
    行 12: <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    行 13: <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    行 14: <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
    源文件: C:\Inetpub\bookManage\web.config 行: 12  
    版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573  有人告诉我是Framework版本不对,可是我装了Framework  SP1了  还是不行
    你告诉我是数据库连接问题,可是我现在连网页都没有打开,怎么可能去连数据库啊?
      

  10.   

    我重新注册了一下aspnet_regiis  又出现新问题了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: Could not load file or assembly 'CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. 系统找不到指定的文件。Source Error: 
    Line 60:  <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    Line 61:  <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    Line 62:  <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></httpHandlers>
    Line 63:  <pages>
    Line 64:  <controls>
     Source File: C:\Inetpub\bookManage\web.config    Line: 62 Assembly Load Trace: The following information can be helpful to determine why the assembly 'CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' could not be loaded.
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. 
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053 不知道怎么办?
      

  11.   

    问题是你的IIS没配好。电脑可能安装了多个版本。IIS使用的Microsoft .NET Framework 版本:1.1.4322.573
    而程序运用的net 3.5。
    你只需到IIS中网站,属性中,asp.net把1.1改为3.5版就行了。若仍然不行,需注册。aspnet_regiis.exe -i
      

  12.   

    System.Web.Extensions, Version=3.5.0.0
    CrystalDecisions.Web, Version=10.5.3700.0,安装.net3.5和水晶报表