Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 14, 2013 10:57 AM by Angie xu - MSFT
Jan 07, 2013 12:25 PM|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.
Jan 14, 2013 10:57 AM|LINK
You could refer the detailed information about ActiveDirectoryMembershipProvider Class
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,