Asp.Net Impersonation Fails On First Try But Succeeds on Second

Posted by KevDog on Stack Overflow See other posts from Stack Overflow or by KevDog
Published on 2010-06-03T19:28:10Z Indexed on 2010/06/03 19:34 UTC
Read the original article Hit count: 200

Filed under:
|
|

We are using RDLC's in a Asp.net web application. For reasons beyond our understanding, the first call to the database server fails with the following error:

An error has occurred during report processing. Cannot open database "TryParkingIt2" requested by the login. The login failed. Login failed for user 'EXTRANET\OurServerNameHere$'.

Run the report again, it works.

Huh?

Update Click the button the first time, it fails. Click the button again, it works. The account being impersonated is a domain account.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about impersonation