Web.config Impersonate With HangFire


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

<identity impersonate="true"
password="pass" />

Are you specifying a database connection for Hangfire to use?

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.