I have a app that uses several membership/role providers. I can list these
Providers with the code:
Dim rootWebConfig1 As Configuration
rootWebConfig1 =
WebConfiguratio nManager.OpenWe bConfiguration( Request.Applica tionPath)
Dim section As New MembershipSecti on
section = rootWebConfig1. GetSection("sys tem.web/membership")
Using the Immediate Window :
? section.Provide rs(0).Name
"AspNetSqlMembe rshipProvider"
? section.Provide rs(1).Name
"MemberProv 1"
? section.Provide rs(2).Name
"ADProvider 1"
As you can see I can list the providers but the Provider
AspNetSqlMember shipProvider" is in the machine.config I do not have control
over the machine config at all my sites so I want to get the Providers only
from the web.config in my application.
How do I do this.
Thank you
--
Jerry
Providers with the code:
Dim rootWebConfig1 As Configuration
rootWebConfig1 =
WebConfiguratio nManager.OpenWe bConfiguration( Request.Applica tionPath)
Dim section As New MembershipSecti on
section = rootWebConfig1. GetSection("sys tem.web/membership")
Using the Immediate Window :
? section.Provide rs(0).Name
"AspNetSqlMembe rshipProvider"
? section.Provide rs(1).Name
"MemberProv 1"
? section.Provide rs(2).Name
"ADProvider 1"
As you can see I can list the providers but the Provider
AspNetSqlMember shipProvider" is in the machine.config I do not have control
over the machine config at all my sites so I want to get the Providers only
from the web.config in my application.
How do I do this.
Thank you
--
Jerry
Comment