wanlitao / HangfireExtension

Hangfire Extension plugins
Apache License 2.0
22 stars 32 forks source link

Hangfire Dashboard: Cannot implicitly convert type ‘long’ to ‘int?’. An explicit conversion exists (are you missing a cast?) #16

Closed SkippingAdi closed 7 years ago

SkippingAdi commented 7 years ago

Hi We are using Hangfire 1.6.16 with SQLite 1.4.1 backend. Whenever we click in the Dashboard on the Jobs-Tab to see the jobs lis the following exception is show: Cannot implicitly convert type 'long' to 'int?'. An explicit conversion exists (are you missing a cast?)

StackTrace: [RuntimeBinderException: Cannot implicitly convert type 'long' to 'int?'. An explicit conversion exists (are you missing a cast?)] CallSite.Target(Closure , CallSite , Object ) +206 Hangfire.SQLite.<>cDisplayClass9_0.b0(DbConnection connection) +534 Hangfire.SQLite.SQLiteStorage.UseConnection(Func2 func, Boolean isWriteLock) +62 Hangfire.SQLite.SQLiteJobQueueMonitoringApi.GetEnqueuedAndFetchedCount(String queue) +270 Hangfire.SQLite.SQLiteMonitoringApi.Queues() +701 Hangfire.Dashboard.Pages.QueuesPage.Execute() +221 Hangfire.Dashboard.RazorPage.TransformText(String body) +31 Hangfire.Dashboard.RazorPageDispatcher.Dispatch(DashboardContext context) +86 Hangfire.Dashboard.<>cDisplayClass1_2.b1(IDictionary2 env) +466 Microsoft.Owin.Mapping.d0.MoveNext() +461 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +62 Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.d5.MoveNext() +203 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +62 Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.d__2.MoveNext() +193 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31 Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.StageAsyncResult.End(IAsyncResult ar) +119 System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +365 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +134

Can anybode help on this issue? Thank you in advance Adrian

wanlitao commented 7 years ago

This bug has been fixed by version 1.4.2, please update your nuget reference