How to configure a HangFire.CompositeC1?

Hi,
I am trying to use compositeC1 package.But it is not working on my machine.
Application throws an error while executing
a method “Hangfire.GlobalConfiguration.Configuration.UseCompositeC1Storage()”. in startup class.
The error is,
The type initializer for ‘Composite.Core.ResourceSystem.StringResourceSystemFacade’ threw an exception.

Can you tell some more about your setup

  • What version of Composite C1 are you using?
  • What does your code look like which calls UseCompositeC1Storage ?

Hi burningice,

I created a blank Asp.net application using vs2012.

install below nuget packages,
HangFire 1.5.9
HangeFire Composite C1 storage 1.5.3

Add new class Startup as shown below,

using Hangfire;
using Hangfire.CompositeC1;
using Microsoft.Owin;
using Owin;

[assembly: OwinStartup(typeof(HangFireCompositeC1.Startup))]
namespace HangFireCompositeC1
{
public class Startup
{
public void Configuration(IAppBuilder app)
{

        GlobalConfiguration.Configuration
            .UseCompositeC1Storage();

        app.UseHangfireDashboard();
        app.UseHangfireServer();
    }
}

}

It build’s successful.
But application throws an error while executing a function UseCompositeC1Storage().

Is this a correct way to initialize compositeC1Storage?

Whats the point of using CompositeC1Storage if you’re not using CompositeC1 !?