title: Cannot convert lambda expression to type ‘System.Linq.Expressions.Expression<System.Action>’ because it is not a delegate type. error in hangfire
body: <pre><code>public void Configuration(IAppBuilder app)
  {
      GlobalConfiguration.Configuration.UseSqlServerStorage(“sqlcn”);
  
      RecurringJob.AddOrUpdate(() =&gt; Console.WriteLine(“Hello”), Cron.Minutely());
  
      app.UseHangfireDashboard();
      app.UseHangfireServer();
  }
  </code></pre>
  
  <p>In this code, I have this error:-
  Cannot convert lambda expression to type <code>System.Linq.Expressions.Expression&lt;System.Action&gt;</code> because it is not a delegate type.
  Please Help Me.!</p>