# Hangfire suddenly started crashing on application startup

**URL:** <https://discuss.hangfire.io/t/hangfire-suddenly-started-crashing-on-application-startup/6913>\
**Category:** bug?\
**Tags:** sql-server\
**Created:** [December 17, 2019, 1:56pm UTC](https://discuss.hangfire.io/t/hangfire-suddenly-started-crashing-on-application-startup/6913 "2019-12-17T13:56:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShawnTheBeachy](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@ShawnTheBeachy](https://discuss.hangfire.io/u/ShawnTheBeachy)\
**Post date:** [December 17, 2019, 1:56pm UTC](https://discuss.hangfire.io/t/hangfire-suddenly-started-crashing-on-application-startup/6913/1 "2019-12-17T13:56:24Z")

</div>

I’ve been using Hangfire for over a year now in my app. The other week it suddenly started crashing with this error:

![Capture](https://europe1.discourse-cdn.com/flex017/uploads/hangfire/original/2X/3/379fcd2262c16bb56d4d08e79b580a07f3a53ae4.png)

This was not after a package update or anything. It just… died. I’ve tried deleting all the Hangfire tables from my development database and allowing it to recreate them, with no luck. The weird thing is that my production site is still running fine. However, if I point my development app at the production database, it still crashes with the same error.

I’ve also created an empty [ASP.Net](http://ASP.Net) Core web app and added Hangfire, pointing it to my same database. It works fine.

I also tried resetting back to a git version that I know was working. It still crashes with teh same error.

I’m completely baffled here. Can anyone shed some light?

---

<div class="post-metadata">

**Author:** ![ShawnTheBeachy](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@ShawnTheBeachy](https://discuss.hangfire.io/u/ShawnTheBeachy)\
**Post date:** [December 17, 2019, 2:09pm UTC](https://discuss.hangfire.io/t/hangfire-suddenly-started-crashing-on-application-startup/6913/2 "2019-12-17T14:09:08Z")

</div>

Here is some additional info because the forum refuses to let me edit my post:

I have tried removing all my custom configuration and just pasting in the bare essentials from the Hangfire tutorial page. It still crashes.

I know that my production database is fine because my production site is running fine (I haven’t deployed the crashing version of my app, obviously). But since my app crashes when I point it at that database, I know it’s definitely not a database issue, it’s a Hangfire issue.

---

<div class="post-metadata">

**Author:** ![odinserj](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/odinserj/32/648_2.png) [@odinserj](https://discuss.hangfire.io/u/odinserj)\
**Post date:** [December 17, 2019, 2:11pm UTC](https://discuss.hangfire.io/t/hangfire-suddenly-started-crashing-on-application-startup/6913/3 "2019-12-17T14:11:55Z")

</div>

Everything is fine in your application, and that’s not a crash – that’s just an exception that’s handled by Hangfire itself to decide what method of fetching delayed and recurring job to use. You can simple ignore that exception and tell Visual Studio to not to break on this exception thrown from Hangfire.SqlServer.dll.

---

<div class="post-metadata">

**Author:** ![ShawnTheBeachy](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@ShawnTheBeachy](https://discuss.hangfire.io/u/ShawnTheBeachy)\
**Post date:** [December 17, 2019, 2:14pm UTC](https://discuss.hangfire.io/t/hangfire-suddenly-started-crashing-on-application-startup/6913/4 "2019-12-17T14:14:29Z")

</div>

😣 Oh goodness. I must have reset my exception settings or something. Thanks for the info!!
