I have read through all the related questions, but I still unable to get the right solution for some reason, something is not right on my side, but not sure what\'s causing
Here is the code to initialize a provider:
System.Collections.Specialized.NameValueCollection adProviderConfig;
adProviderConfig = membershipSection.Providers[adProviderName].Parameters;
var _ADProvider = new ActiveDirectoryMembershipProvider();
_ADProvider.Initialize(adProviderName, adProviderConfig);