0

How to always start website?

because I run a thread in background and want to run always.but when nobody login to site,thread doesn't run

I find this link but doesn't help me

SajjadZare
  • 2,487
  • 4
  • 38
  • 68
  • Its hard to understand the actual problem associated with your question? All the answers here, have iterated more or less the same things mentioned in the article you've linked to! By the way, I hope you are using IIS 8. – deostroll Jun 02 '14 at 05:43

1 Answers1

1

Running a background thread application is not a good idea if your website is having high traffic. I suggest you to create windows service which will run on a regular time interval. But still if you want to run then you can choose make your application pool to always running like following(IIS 7.5 and high version).

<applicationPools> 
  <add name="MyAppWorkerProcess" managedRuntimeVersion="v4.0" startMode="AlwaysRunning" /> 
</applicationPools>

For more details see following link.

http://developers.de/blogs/damir_dobric/archive/2009/10/11/iis-7-5-and-always-running-web-applications.aspx

Jalpesh Vadgama
  • 13,653
  • 19
  • 72
  • 94