Cannot open database "HangFire" requested by the login

Hi,

Can any one help me out using Hang Fire. I have followed all the steps from document but no luck.I have created the connection string on web.config and i am using that as

        started = true;

        JobStorage.Current = new SqlServerStorage("HangFire");

        backgroundJobServer = new BackgroundJobServer();
        backgroundJobServer.Start();

and i am getting the following error :

An exception of type ‘System.Data.SqlClient.SqlException’ occurred in System.Data.dll but was not handled in user code

Additional information: Cannot open database “HangFire” requested by the login. The login failed.

my connection string is working 100%.But still i am getting this error.

1 Like