Author: Will Steele | Posted on: 11/23/2010 7:39:31 PM | Views : 586

I am working on an application to read event logs on a remote machine.  I tried adding this to the web.config
<identity impersonate="true" user="domain\user" password="password" />
However, when I ran this, I got the following error:
Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'Logon failure: unknown user name or bad password.

I looked at this post
http://social.msdn.microsoft.com/forums/en-US/sqlsecurity/thread/989d9d8a-ff12-4117-a78d-6f60f0197de2/
It seemed to suggest I would need to create a new account on the remote server.  Is there a way I can just use an existing domain account?
...

Go to the complete details ...