user1425879
user1425879

Reputation: 25

Impersonation with visual studio development server

I'm trying to simulate impersonation with asp.net. If I use my application with IIS I don't have any problem and simulate the impersonation correctly, but if i use the VS development server I receive this message:

Impersonation of ... failed! [1326] Logon failure: unknown user name or bad password.

Upvotes: 0

Views: 540

Answers (1)

Philipp Otto
Philipp Otto

Reputation: 4111

Are you using the credentials of the current Windows user when trying to use impersonation with VS Development Server?

As far as I can remember only this user can be used, because the application is running as an executable.

Here is a solution of another user facing your problem:

"Actually, after setting the project to use IIS and creating a virtual directory, I can also now use the built in web server to debug it."

Maybe this helps.

Upvotes: 1

Related Questions