Unable to create a custom section for web.config

前端 未结 2 1385
半阙折子戏
半阙折子戏 2021-01-17 01:21

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:

         


        
2条回答
  •  醉梦人生
    2021-01-17 01:42

    You need to specify the assembly name as part of the type attribute:

    EDIT
    I didn't notice that the MembershipProvidersSection class is a nested class.
    The type name should be:

    MyApp.BusinessObjects.MembershipProviderFactory+MembershipProvidersSection
    

提交回复
热议问题