今天看到服务器有点卡,想起很久没有重启了,所以,就重启了一下,除了站点根目录的程序运行正常之外,凡是虚拟目录的程序都运行错误,都提示Web。config中的节点重复定义。因为单位的程序,架构都是一样的,都有各自的web。config,包括站点、以及站点下面的OA/SALE等等,用的web.config都是一样的,除了数据库连接定义不一样之外。在我的感觉看来,好心变成了站点和虚拟目录共用web。config的情况了。于是,我新建了各自的程序池,还是不行。以前我们发布程序的时候,也是这样的web.config,也没有出过什么问题。最后,我把所有虚拟目录中的web.config都屏蔽了以下内容,程序才正常。我想知道的是,这些内容都是些什么东西。。我GOOGLE搜索了一下,好像都是什么AJAX还有身份认证方面的东西。提示定义的节点重复的内容如下:<sectionGroup name="microsoft.web" type="Microsoft.Web.Configuration.MicrosoftWebSectionGroup">
<section name="converters" type="Microsoft.Web.Configuration.ConvertersSection" requirePermission="false"/>
<section name="webServices" type="Microsoft.Web.Configuration.WebServicesSection" requirePermission="false"/>
<section name="authenticationService" type="Microsoft.Web.Configuration.AuthenticationServiceSection" requirePermission="false"/>
<section name="profileService" type="Microsoft.Web.Configuration.ProfileServiceSection" requirePermission="false"/>
</sectionGroup><membership defaultProvider="MyAspNetSqlProvider" userIsOnlineTimeWindow="20">
<providers>
<remove name="AspNetSqlProvider"/>
<add name="MyAspNetSqlProvider" type="CEIS.Framework.Membership.CommonMembershipProvider" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="/GRI" requiresUniqueEmail="false" passwordFormat="Hashed" minRequiredPasswordLength="3" minRequiredNonalphanumericCharacters="0" passwordStrengthRegularExpression=""/>
</providers>
</membership>不知道,有人碰到过么?