I've been experimenting with Hangfire today. It looks like a cool product. Unfortunately, my environment is not the most up-to-date. I have VS 2010, .Net 4.0 and SQLServer 2005. I created a new project and installed Hangfire, Hangfire.Core, Hangfire.NET40.SQLServer, OWIN and who knows what else. The project now has no errors. All references are resolved.
I got a lot of insight from here at StackOverflow and attempted to configure the Startup Class as instructed.
Public Sub Configuration(app As IAppBuilder)
app.UseHangfire(
Sub(config)
' Basic setup required to process background jobs.
config.UseSqlServerStorage("SQLServer")
config.UseServer()
End Sub)
End Sub
I also created a new SQL User and empty database for Hangfire to use. In the Web.Config file I added this connection string:
<add name="SQLServer"
connectionString="Server=SQLServer;Database=Hangfire;User Id=HangfireAPI;Password=********;" />
I think I've covered all the bases but at runtime the call to UseSqlServerStorage returns an error:
Locating source for 'c:\_oss\common-logging\src\Common.Logging.Core\Logging\Simple\NoOpLogger.cs'. Checksum: MD5 {7d f3 26 f7 66 5a 52 54 72 fe 23 b9 2 c1 cd 50}
The file 'c:\_oss\common-logging\src\Common.Logging.Core\Logging\Simple\NoOpLogger.cs' does not exist.
Looking in script documents for 'c:\_oss\common-logging\src\Common.Logging.Core\Logging\Simple\NoOpLogger.cs'...
Looking in the projects for 'c:\_oss\common-logging\src\Common.Logging.Core\Logging\Simple\NoOpLogger.cs'.
The file was not found in a project.
I've searched without success for the file 'NoOpLogger.cs'. Since my project is VB, I'm not sure why or how this is coming up.
I'd appreciate help on this one.