admin管理员组文章数量:1401634
I am new to .NET webservices.
I am trying to implement Hangfire service in the following way
In startup.cs
Add the below snippets in ConfigureServices()
method
services.AddHangfire(config =>
config.UseSqlServerStorage("<my database connection string>")
.SetDataCompatibilityLevel(CompatibilityLevel.Version_180)
.UseColouredConsoleLogProvider()
.UseSimpleAssemblyNameTypeSerializer()
.UseRecommendedSerializerSettings()
);
services.AddHangfireServer();
And in configure()
method I added below
app.UseHangfireDashboard();
RecurringJob.AddOrUpdate<FileUploadService>("fileuploadservice", service => service.CheckAndUploadFiles(), Cron.Minutely);
I tried to deploy the code in IIS and after I select "Browse", the following error is displayed
Note: If I revert back, it works fine.
Please help me get the resolution
本文标签: aspnet web api2NET hangfire servicesApplication not getting startedStack Overflow
版权声明:本文标题:asp.net web api2 - .NET hangfire services - Application not getting started - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744282945a2598742.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论