Asp.Net Impersonation Fails On First Try But Succeeds on Second
- by KevDog
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.