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
- Next message: greg williams: "aspx page is unable to read/write files that are located on a network share"
- Previous message: Gene: "AUTH=NTLM (SMTP Protocol Question)"
- Next in thread: anonymous_at_discussions.microsoft.com: "The referenced account is currently locked out and may not be logged on to. " }"
- Reply: anonymous_at_discussions.microsoft.com: "The referenced account is currently locked out and may not be logged on to. " }"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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.
- Next message: greg williams: "aspx page is unable to read/write files that are located on a network share"
- Previous message: Gene: "AUTH=NTLM (SMTP Protocol Question)"
- Next in thread: anonymous_at_discussions.microsoft.com: "The referenced account is currently locked out and may not be logged on to. " }"
- Reply: anonymous_at_discussions.microsoft.com: "The referenced account is currently locked out and may not be logged on to. " }"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|