Re: UnauthorizedAccessException when updating a directory service entry from ASP.NET
- From: allenc@xxxxxxxxxxxxxxxxxxxx (Allen Chen [MSFT])
- Date: Fri, 17 Apr 2009 07:13:33 GMT
Hi Andrew,
I did a simple test on Windows Server 2008 and it works fine. The code is
the same as yours.
Then I tried several hours on my side to reproduce this issue and finally
found a way to reproduce the same exception. The way to repro is to check
"User cannot change password" option for the user account.
1. Click Start-> right click Computer-> click "Manage".
2. Expand "Configuration" node-> Expand "Local Users and Groups".
3. Click "Users" node.
4. Find the user account used in your application and double click it.
5. In the "General" tab, please check if "User cannot change password" has
been checked. If it's checked please uncheck it and run your application
again.
Please try the above steps to check. If it's not the cause please provide
the call stack of this exception and check the event log to see if some
clues can be got from there.
Regards,
Allen Chen
Microsoft Online Support
.
- Follow-Ups:
- Re: UnauthorizedAccessException when updating a directory service entry from ASP.NET
- From: Andrew Jocelyn
- Re: UnauthorizedAccessException when updating a directory service entry from ASP.NET
- References:
- UnauthorizedAccessException when updating a directory service entry from ASP.NET
- From: Andrew Jocelyn
- RE: UnauthorizedAccessException when updating a directory service entry from ASP.NET
- From: Allen Chen [MSFT]
- Re: UnauthorizedAccessException when updating a directory service entry from ASP.NET
- From: Andrew Jocelyn
- UnauthorizedAccessException when updating a directory service entry from ASP.NET
- Prev by Date: Re: asp.net 3.5 vs. Windows XP Pro
- Next by Date: Preventing default button to react when in a multi-row textbox
- Previous by thread: Re: UnauthorizedAccessException when updating a directory service entry from ASP.NET
- Next by thread: Re: UnauthorizedAccessException when updating a directory service entry from ASP.NET
- Index(es):