Open SirDerpington opened 6 years ago
I gave it another try with https://github.com/joel-cass/Hangfire.MySqlStorage
where (as I understand it) the only difference is that table names are prefixed with "Hangfire". It indeed seems to solve my problem.
Did anyone find solution? I am still facing this issue. I have table prefix same as it is. I am using ASp.net Core, MYSQL with Hangfire
Same problem
After downloading and installing Hangfire.MySqlStorage via the NuGet Package Manager I created an OWIN Startup class. Putting the following code in the Configuration method throws an exception.
That's the stack trace:
[TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht.] System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +160 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +101 Owin.Loader.<>cDisplayClass12.b b(IAppBuilder builder) +66
Owin.Loader.<>cDisplayClass1.b 0(IAppBuilder builder) +123
Microsoft.Owin.Host.SystemWeb.<>cDisplayClass2.b 0(IAppBuilder builder) +71
Microsoft.Owin.Host.SystemWeb.OwinAppContext.Initialize(Action
1 startup) +462 Microsoft.Owin.Host.SystemWeb.OwinBuilder.Build(Action
1 startup) +40 Microsoft.Owin.Host.SystemWeb.OwinHttpModule.InitializeBlueprint() +70 System.Threading.LazyInitializer.EnsureInitializedCore(T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory) +115 Microsoft.Owin.Host.SystemWeb.OwinHttpModule.Init(HttpApplication context) +106 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +536 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +173 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296[HttpException (0x80004005): Ein Aufrufziel hat einen Ausnahmefehler verursacht.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10085804 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
Is there anything I am doing wrong or some place you can point me to? It's definitely not an error caused by my code.