I have a CSHTML-type Web Application that authenticates against a few different domains. As such, in the web.config file I have 4 System.Web.Security.ActiveDirectoryMembershipProvider membership providers and 4 corresponding Connection Strings which points
to the LDAP Server for each domain.
I am trying to see how I can catch any errors that the Membership Providers may throw, for example if one of the LDAP servers are down. Since the web.config file compiles before the actual Login Page, if one LDAP server is down and the application errors
out, no one can get in and we're stuck in the water.
Is there anything that I can do to simply test and skip over a Membership Provider if the connection fails for one?
You could refer the detailed information about ActiveDirectoryMembershipProvider Class
here,
This class is used by the Membership and MembershipUser classes to provide membership services for an ASP.NET application
using an Active Directory (AD) or Active Directory Application Mode server.
hope it helps you,
Kind regards
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
None
0 Points
1 Post
Catching error for inaccessible LDAP server in web.config
Jan 07, 2013 08:25 AM|nchokas|LINK
I have a CSHTML-type Web Application that authenticates against a few different domains. As such, in the web.config file I have 4 System.Web.Security.ActiveDirectoryMembershipProvider membership providers and 4 corresponding Connection Strings which points to the LDAP Server for each domain.
I am trying to see how I can catch any errors that the Membership Providers may throw, for example if one of the LDAP servers are down. Since the web.config file compiles before the actual Login Page, if one LDAP server is down and the application errors out, no one can get in and we're stuck in the water.
Is there anything that I can do to simply test and skip over a Membership Provider if the connection fails for one?
Any help is greatly appreciated.
All-Star
32789 Points
3802 Posts
Microsoft
Re: Catching error for inaccessible LDAP server in web.config
Jan 14, 2013 06:57 AM|Angie xu - MSFT|LINK
Hi nchokas
You could refer the detailed information about ActiveDirectoryMembershipProvider Class here,
This class is used by the Membership and MembershipUser classes to provide membership services for an ASP.NET application
using an Active Directory (AD) or Active Directory Application Mode server.
hope it helps you,
Kind regards
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.