The referenced account is currently locked out and may not be logged on to. " }

From: Greg Williams (anonymous_at_discussions.microsoft.com)
Date: 12/31/03


Date: Wed, 31 Dec 2003 13:12:37 -0800

I have a web service that needs to write files to a users
computer. So far my attempts have fall a little short.

SET UP
windows 2000
VS 2003
ASP.NET using C#

I have set the web.config file to use impersonation using
a domain user account in Active Directory.
<identity impersonate="true" userName="domain\username"
password="password"></identity>
this user has also has been configured for delegation as
stated in article "810572-How to: configure an asp.net
application for delegation". because I am using
impersonation I did not configure the computer for
delegation.
This user has also been added to the local computers
security policy group "Act as part of the operating system"
This user also has god rights.

IE has been set up for delegation also as stated in
article 810572.

IIS has been set up as stated in article 810572
the web site is currently running on my laptop and was
created in IIS from selecting new solution from VS 2003.
this creates the VD site in IIS. no other setup has been
done to IIS except for what the article stated. (default
install) site is running under the default web site.

When running the code I can see that
System.Security.Principal.WindowsIdentity.GetCurrent
().Name is set to the user account in the web.config file
however when trying to create the directory to write the
file to I receive an error:
1)
 {@"[CContentBaseImpl ][CanCreateFile ]Creating file
\\L101453\c$\NrPortbl\iManage\G_Williams\3172661_1.DOC :
Logon failure: unknown user name or bad password. " }
System.Exception
This seems to happen on occasion. the username and
password are correct. I can log into any computer in the
domain with it.
OR
{@"[CContentBaseImpl ][CanCreateFile ]Creating file
\\L101453\c$\NrPortbl\iManage\G_Williams\3172661_1.DOC :
The referenced account is currently locked out and may not
be logged on to. " } System.Exception

I am at a loss here. Any suggestions would be welcome.
Code examples appreciated.



Relevant Pages

  • The referenced account is currently locked out and may not be logged on to. " }
    ... >a domain user account in Active Directory. ... >this user has also has been configured for delegation as ... >created in IIS from selecting new solution from VS 2003. ... >install) site is running under the default web site. ...
    (microsoft.public.dotnet.security)
  • Re: IIS suddenly wants login?
    ... When you allow anonymous access, IIS still needs to use a user account get ... sites under the Default web site using Asp.Net 1.1 and 2.0. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Localhost Access Denied
    ... computer using the same user account, ... I tried to set defaultDomainName in IIS mmc /Default Web Site ...
    (microsoft.public.inetserver.iis.security)
  • Re: Exchange Virtual Directory 404 Not Found
    ... XCCC: IIS Lockdown and URLscan Configurations in an Exchange Environmenthttp://support.microsoft.com/?id=309508 ... re-create the Exchange-related virtual directories in Internet Services ... visit the following Microsoft Web site: ... Custom installation option to install only Metabase Explorer 1.6. ...
    (microsoft.public.windows.server.sbs)
  • RE: Remote Webworkplace and OWA 3 times log in
    ... I rest the IIS - Start RUN - type iisreset ... the IIS Default Web Site application. ... Windows account for anonymous access to the Administrator account I renter ... I understand that users can logon to RWW and OWA ...
    (microsoft.public.windows.server.sbs)