title: hangfire database not created after install
body: <p>I installed the hangfire with Nuget.</p>
  
  <pre><code>PM&gt; Install-Package Hangfire
  </code></pre>
  
  <p>Then updated the OWIN Startup class with the following lines:</p>
  
  <pre><code>public void Configuration(IAppBuilder app)
  {
      GlobalConfiguration.Configuration.UseSqlServerStorage("MySqlConnection");
  
      app.UseHangfireDashboard();
      app.UseHangfireServer();
  }
  </code></pre>
  
  <p>I named the connection string name on the web.config as the name of the connectionString In UseSqlServerStorage.</p>
  
  <p>web.config:</p>
  
  <pre><code>&lt;connectionStrings&gt;
      &lt;add name="MyEntities" connectionString="metadata=res://*/CRMModelContext.csdl|res://*/CRMModelContext.ssdl|res://*/CRMModelContext.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source=.;initial catalog=xxx;persist security info=True;user id=sa;password=123;MultipleActiveResultSets=True;App=EntityFramework&amp;quot;" providerName="System.Data.EntityClient" /&gt;
      &lt;add name="MySqlConnection" connectionString="User ID=sa;Initial Catalog=xxx;Password=123;Integrated Security=False;Data Source=." /&gt;
  </code></pre>
  
  <p>SQL Server 2008 R2 is installed on the system but The database for the hangfire is not in it.</p>
  
  <p>Finally, when I run the program, the error below.</p>
  
  <p>My Job:</p>
  
  <pre><code>BackgroundJob.Enqueue&lt;Receiver&gt;(x=&gt;x.EmailReceiving());
  RecurringJob.AddOrUpdate&lt;Receiver&gt;(x =&gt; x.EmailReceiving(), Cron.MinuteInterval(15));
  </code></pre>
  
  <p>error:</p>
  
  <pre><code> JobStorage.Current property value has not been initialized. You must set it before using Hangfire Client or Server API. 
  </code></pre>