重複の可能性:
web.config のカスタム セクションを作成できません
カスタム構成セクションを作成しましたが、オプションで存在させたいです。それがデフォルトですか、それともカスタム構成セクションを定義する場合、構成ファイルに存在する必要がありますか?
つまり、次のようにconfigsections
宣言されたセクションがあります。
<configSections>
<section
name="MembershipProviders"
type="MyApp.BusinessObjects.MembershipProviderFactory.MembershipProvidersSection"
allowLocation="true"
allowDefinition="Everywhere"
/>
</configSections>
しかし、私の web.config には、その宣言に対応するセクションがありません。
ただし、これらのセクションを宣言するクラスはあります。