Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • bjarnerosendal 11 posts 102 karma points
    Nov 01, 2022 @ 14:46
    bjarnerosendal
    0

    Startup issue with Hangfire on local Umbraco 10.3.2 project

    I have an Umbraco 10 project where I installed this Hangfire package:

    <PackageReference Include="Hangfire" Version="1.7.31" />
    

    In my Startup.cs I added the following lines to the ConfigureServices method:

            services.AddHangfire(x =>
            {
                x.UseSqlServerStorage(_config.GetConnectionString("hangfireConnection"));
            });
            services.AddHangfireServer();
    

    But when I hit F5 to bootup the project, it just closes down straight away. I tried looking in the logs, but no clear indication or exception can be found there. It is only after I comment out services.AddHangfireServer(); that I am able to startup. Has anyone had these issues before?

    I also tried just installing Sebastiaan's Cultiv.Hangfire package, but same issue with that one unfortunately :( https://our.umbraco.com/packages/developer-tools/cultivhangfire/

  • Huw Reddick 1929 posts 6717 karma points MVP 2x c-trib
    Nov 02, 2022 @ 10:16
    Huw Reddick
    100

    It could be this, it caused me a big headache at the time :D

    https://github.com/HangfireIO/Hangfire/issues/2105

  • bjarnerosendal 11 posts 102 karma points
    Nov 02, 2022 @ 10:30
    bjarnerosendal
    0

    Ohh my god, thank you so much Huw! That did the trick! :)

  • Huw Reddick 1929 posts 6717 karma points MVP 2x c-trib
    Nov 02, 2022 @ 13:15
    Huw Reddick
    0

    no problem, took me ages to figure out what it was for me, as it just suddenly stopped working, figured it must have been a windows update that did it as it worked one day and not the next (windows update in bewtween)

    was banging my head against the wall :D

Please Sign in or register to post replies

Write your reply to:

Draft