I created a custom section in the web.config file but it isn\'t able to load my custom type that is going to manage the section.
Here are the definitions:
You need to specify the assembly name as part of the type
attribute:
<section
name="MembershipProviders"
type="Namespace.TheCustomSection, TheAssemblyNameGoesHere"
allowLocation="true"
allowDefinition="Everywhere"
/>
EDIT
I didn't notice that the MembershipProvidersSection
class is a nested class.
The type name should be:
MyApp.BusinessObjects.MembershipProviderFactory+MembershipProvidersSection
You are missing assembly name where you are declaring type:
MyApp.BusinessObjects.MembershipProviderFactory.MembershipProvidersSection,?
Take a look at one of my posts about custom configuration: C# WCF System.Configuration.ConfigurationErrorsException: Unrecognized element 'ManagedService'