# How to config Hangfire with Asp.Net 5?

**URL:** <https://discuss.hangfire.io/t/how-to-config-hangfire-with-asp-net-5/945>\
**Category:** question\
**Created:** [May 7, 2015, 12:04am UTC](https://discuss.hangfire.io/t/how-to-config-hangfire-with-asp-net-5/945 "2015-05-07T00:04:01Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![dotnetnoobie](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/dotnetnoobie/32/490_2.png) [@dotnetnoobie](https://discuss.hangfire.io/u/dotnetnoobie)\
**Post date:** [April 27, 2016, 12:12pm UTC](https://discuss.hangfire.io/t/how-to-config-hangfire-with-asp-net-5/945/22 "2016-04-27T12:12:38Z")

</div>

Yes I also get a new server, but after a few minutes it will return to just 1

---

<div class="post-metadata">

**Author:** ![thefonz](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/thefonz/32/625_2.png) [@thefonz](https://discuss.hangfire.io/u/thefonz)\
**Post date:** [May 13, 2016, 8:04am UTC](https://discuss.hangfire.io/t/how-to-config-hangfire-with-asp-net-5/945/23 "2016-05-13T08:04:21Z")

</div>

Hi all,  
Thanks for the detail on this thread. Got hangfire working in our [ASP.NET](http://ASP.NET) 5 RC1 app and deployed to IIS server and using the IIS platform handler (as per instructions here: [http://docs.asp.net/en/latest/publishing/iis.html](http://docs.asp.net/en/latest/publishing/iis.html))

HOWEVER… After a few hours of running Hangfire seems to “intercept” all requests we make to our site and the url is as follows [http://oursite.internal.com/hangfire/hangfire/hangfire/hangfire/hangfire/thepagerequested/](http://oursite.internal.com/hangfire/hangfire/hangfire/hangfire/hangfire/thepagerequested/)

Please note that we increased the idle time and regular time interval of the apppool in order to keep hangfire alive…

Any idea how we would start to investigate and debug this?  
Thanks a million in advance!

---

<div class="post-metadata">

**Author:** ![Domagoj\_Medo](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/domagoj_medo/32/1575_2.png) [@Domagoj\_Medo](https://discuss.hangfire.io/u/Domagoj_Medo)\
**Post date:** [May 13, 2016, 12:27pm UTC](https://discuss.hangfire.io/t/how-to-config-hangfire-with-asp-net-5/945/24 "2016-05-13T12:27:10Z")

</div>

I’d really recommend to run hangfire as Windows service and not inside web app. Solved all kinds of problems for me

---

<div class="post-metadata">

**Author:** ![joshit](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@joshit](https://discuss.hangfire.io/u/joshit)\
**Post date:** [March 28, 2017, 11:37am UTC](https://discuss.hangfire.io/t/how-to-config-hangfire-with-asp-net-5/945/25 "2017-03-28T11:37:59Z")

</div>

First of all: Thank you very much for your work on this framework!! It looks great and is really easy to use. Unfortunately I´ve got a problem using Hangfire on [ASP.NET](http://ASP.NET) Core WebApplication (.NET Framework) (compare [Hangfire with .net core framework 4.6](http://hangfire.discourse.group/t/hangfire-with-net-core-framework-4-6/2270/11))

We absolutely want to use Hangfire for processing background Jobs in our new WebApp, because ists small, handy and has a incredible dashboard 😉

But our projecttype is somehow not supported. Now I´ve found this extension and it looks like a solution for my problems, but I can´t find the IAppBuilder subApp.UseOwin()-Method. The Message is, that IAppBuilder does not contain a definition for “UseOwin” … Is there a using, that I´m missing or any similar reason you can imagine? Would be great, if I you can help me out with this one.

Best regards

[Previous page](https://discuss.hangfire.io/t/how-to-config-hangfire-with-asp-net-5/945.md?page=1)
