views:

24

answers:

0

I have a very strange problem. I have a httpmodule that is running with impersonation (for an anonymous user) through IIS. Impersonation is not taking effect in some cases but is in others. The module is doing an asynchronous web service call, followed by a database call. All of this takes place in the PreRequestHandler event. I'm finding that the database call is failing some times but not others, and it fails because the db user is the default asp.net worker instead of the credentials I set up for anonymous login.

Anyone dealt with this sort of thing before? Any ideas?