Enterprise Library 5.0 Impersonate Issue

Topics: Exception Handling Application Block, Logging Application Block
May 12, 2010 at 5:53 PM

Hello Friends,

I am having a typical issue.

Environment: .NET 4.0, Silverlight 4.0, WCF RIA Services

I have two connection strings, one used by code for data handling and the other used by Ent Lib for exception handling (storing exception in centralized db). I am using Windows Auth (intranet app) and have a service a/c that am using to connect to both the DBs (I have checked, access is all fine).

The application connects totally fine with my DB but when the Ent Lib tries to log exception, it is not using hte service account (Although Impersonate=true with service a/c has been set). It is sending the machine name on which the service is hosted. (domain\machinename$).

I have already spent 4-6 hours trying to figure this one..

By round of elimination I can only guess Ent Lib ignoring impersonation setting in web.config.. but dont know why.  (Since WCF RIA is working fine on non Ent Lib db).

Note: I am only using Exception Logging (Database Trace Listener).

Can someone suggest what I need to do to overcome this issue? I want Ent Lib to also connect with the same service account.

Thanks,

Chintu

May 13, 2010 at 2:38 AM

Did you set the RevertImpersonation property of the Logging Application Block to false?

 

Sarah Urmeneta
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com