Web.config Impersonate With HangFire

Greetings,

I’m trying to impersonate another user in order to connect to SQL database using an Active Directory (AD) username and password, but when ever the impersonate is enabled hangfire does not recognize any server. i.e. when opening the dashboard it shows the number of servers is ‘0’.

Any suggestion?

I’m using the below text in my web.config

<system.web>
<identity impersonate="true"
userName="user"
password="pass" />

Are you specifying a database connection for Hangfire to use?
GlobalConfiguration.Configuration.UseSqlServerStorage(“DbConnection”);

I’m using a database connection. However, you cannot specify the active directory user in the connection string. SQL connection string accepts only SQL username and password.

after using impersonation database connection works fine, but the I cannot see the dashboard.