2012-09-06 70 views

回答

3

嘗試使用此代碼

<configSections> 
    <section name="" type="System.Configuration.DictionarySectionHandler, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> 
    <sectionGroup name="system.web"> 
     <section name="test" type="DataSetSectionHandler,SectionHandlers" /> 
    </sectionGroup> 
    </configSections> 


<system.web> 
    <compilation debug="true"/> 
    <authentication mode="Windows" /> 

    <test attribute="..." /> 
    </system.web> 
+0

這工作!謝謝 – prestomanifesto

+0

我很樂意幫助你prestomanifest –

-1

你不允許內部<system.web>添加自定義配置部分。您可以在<configuration>下配置自定義配置部分。檢查這個how to

+1

在http://mike-ward.net/blog/post/00830/creating-custom-configuration-sections-in-web-config還有一個自定義部分的例子。 –