我知道你可以使用<remove />
刪除密鑰。我試圖使用,但我的web.config中的一節,我想你不能刪除部分?如果我想刪除整個組「webServices」呢?從Web.Config刪除一個部分
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<remove section="jsonSerialization" />
<remove section="profileService" />
<remove section="authenticationService" />
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
IIS被投擲配合有關上述開始與此錯誤消息:
The requested page cannot be accessed because the related configuration data for the page is invalid.
它談論以上與jsonSerialization和該組中的隨後的部分開始的章節。
你可以使用*什麼*刪除鍵? – 2009-10-14 19:12:01
@亨克:我猜他不是指文本編輯器。 – 2009-10-14 19:14:26