The jobs are started fine but when I try to access the dashboard I get the following exception:
[ArgumentException: No conversion available between System.Func`2[System.Collections.Generic.IDictionary`2[System.String,System.Object],System.Threading.Tasks.Task] and Microsoft.Owin.OwinMiddleware.
Parameternamn: signature]
Microsoft.Owin.Builder.AppBuilder.Convert(Type signature, Object app) +227
Microsoft.Owin.Builder.AppBuilder.BuildInternal(Type signature) +191
Owin.MapExtensions.Map(IAppBuilder app, PathString pathMatch, Action`1 configuration) +274
Owin.MapExtensions.Map(IAppBuilder app, String pathMatch, Action`1 configuration) +181
VerksamhetsKatalog.Services.Startup.Configuration(IAppBuilder app) in c:\src\tfs\Verksamhetskatalog\Main\Source\VerksamhetsKatalog.Services\Startup.cs:22
[TargetInvocationException: Ett undantagsfel har inträffat i målet för en aktivering.]
System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +76
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +193
System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +35
Owin.Loader.<>c__DisplayClass1.<LoadImplementation>b__0(IAppBuilder builder) +341
Microsoft.Owin.Host.SystemWeb.OwinAppContext.Initialize(Action`1 startup) +1043
Microsoft.Owin.Host.SystemWeb.OwinHttpModule.InitializeBlueprint() +119
System.Threading.LazyInitializer.EnsureInitializedCore(T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory) +241
Microsoft.Owin.Host.SystemWeb.OwinHttpModule.Init(HttpApplication context) +129
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +530
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475
[HttpException (0x80004005): Ett undantagsfel har inträffat i målet för en aktivering.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12968244
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12807949
My Startup class is same as documentation:
public class Startup
{
public void Configuration(IAppBuilder app)
{
var authorizationFilters = new[]
{
new LocalRequestsOnlyAuthorizationFilter()
};
app.MapHangfireDashboard("/hangfire", authorizationFilters);
}
}
Im also experiencing this issue, but my project wont event build. Same nuget packages as the OP:
No conversion available between System.Func`2[System.Collections.Generic.IDictionary`2[System.String,System.Object],System.Threading.Tasks.Task] and Microsoft.Owin.OwinMiddleware.
I am also experiencing the same exception when following the same documentation as the OP. My app compiles fine but when running the app, the exception occurs at the same spot.
I am having same issue, same exception and same package settings.
Also i wonder why each time server is restarted it give different port for the server. i.e. Under Server on dashboard, each time server restarted due to pool restart or website restart it give different port. I have given a name to the server but can’t fix its port.
The problem is that all the job completed for that server with that specific port got lost from succeed page on dashboard when ever port is changed. However count remains same but job listed for new server port.
This is why i am try to make server always run. Hope to get some answers
Not sure if this will help solve your problem but did you recently upgrade Microsoft Identity to 2.0 with Nuget? If you did, there were a bunch of underlying changes. Look here for some information that might help you understand the upgrade.
Hello, thank you guys a lot for detailed messages and help to each other while I was absent. I’ve registered this bug at GitHub issues, it contains a possible workaround for the issue. It is one of the hard-to-investigate consequences of using IL Merge.