471,319 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

ActiveDirectoryMembershipProvider not initialized

I am trying to write a change password routine using the new
ActiveDirectoryMembershipProvider. My code is below. I'm getting an exception
saying that my ActiveDirectoryMembershipProvider has not been initialized.
Can you guys point me to something that tells me what I'm doing wrong, please?

bool checkItOut;
string ls_retVal = "";
ActiveDirectoryMembershipProvider obj = new
ActiveDirectoryMembershipProvider();
try
{
checkItOut = obj.ChangePassword(as_userName, as_oldPassword,
as_newPassword);
}
catch (Exception ex)
{
ls_retVal = ex.Message;
}

--
----------------------------------------
Magic is not in the hands of the magician but in the mind of the audience.

Animadverto est verus
Jan 19 '06 #1
0 1318

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

18 posts views Thread by Glenn Eastlack | last post: by
5 posts views Thread by Gonza | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.