我收到无法识别的配置部分system.web / protocols错误。可能是什么原因?在system.web标签内是不允许身份impresonate .. ??有关更多详细信息,请参阅下面的web.config文件。
<system.web>
<identity impersonate="true" userName="admin" password="adminpwd"/>
<pages>
<controls>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI" tagPrefix="asp"/>
</controls>
</pages>
<compilation debug="true" strict="false" explicit="false">
<assemblies>
<add assembly="Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
</compilation>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
<authentication mode="Windows"/>
<sessionState cookieless="false" timeout="120"/>
<customErrors mode="Off"/>
<httpRuntime executionTimeout="1500" maxRequestLength="80000" requestLengthDiskThreshold="80000" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="5000" enableKernelOutputCache="true" enableVersionHeader="true" requireRootedSaveAsPath="true" enable="true" shutdownTimeout="90" delayNotificationTimeout="5" waitChangeNotification="0" maxWaitChangeNotification="0" enableHeaderChecking="true" sendCacheControlHeader="true" apartmentThreading="false"/>
</system.web>
这是错误消息
Error 102 Unrecognized configuration section system.web/protocols. (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config line 297)
当我从另一台机器复制源代码时,也出现了错误。
答案 0 :(得分:0)
问题已修复。我查看过c:\ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ Config \ web.config而不是项目web.config文件,只删除了空的协议标记(我真的不明白为什么!!!)我没有在项目Web.config文件中添加任何单行。我希望这能帮助那些遇到同样问题的人。