7

Thank you for your time :) I'm sorry if this has been asked before, I just really need clarification.

Environment: server 2008 R2 64bit

Basically what im attempting to do is create an autonomous application that will load even if the server reboots.

I went ahead and wrote a wcf service that will do the workload.

All I need is a trigger that will start one web method. It needs to fire even if the website isnt loaded (visited).

So far all ive found are registry edits, and possible a batch file. I really dont like the idea and I wish I could do something else.

I was hoping to find something in iis7 that would either call the global.asax file or AppInitialize() in the service.

The only way ive been able to get it to fire is if I visit the application myself.

Thanks for any help!

:)

Anthem127
  • 169
  • 2
  • 10

1 Answers1

6

You Windows Server version actually has IIS 7.5, so you are in luck. Check out the new Auto Start feature:

Auto-Start Feature

The auto-start feature of AppFabric is built on top of the auto-start feature of Internet Information Services (IIS) 7.5, which is included in Windows 7 and Windows Server 2008 R2. In IIS, you can configure an application pool and all or some of its applications to automatically start when the IIS service starts.

Dumbledore
  • 450
  • 1
  • 5
  • 20
TheNextman
  • 12,428
  • 2
  • 36
  • 75
  • can you provide any link for the basic implementation ? – Pankaj Feb 06 '12 at 17:40
  • @StackOverflowUser ScottGu has a pretty good article here that explains it all: http://weblogs.asp.net/scottgu/archive/2009/09/15/auto-start-asp-net-applications-vs-2010-and-net-4-0-series.aspx – TheNextman Feb 06 '12 at 18:43
  • Just wanted to thank you for giving me what I was looking for. Thanks again everyone! :) – Anthem127 Feb 09 '12 at 17:12
  • 2
    Those instructions are confusing; I'm on 2008 R2, and the instructions say to open "Windows Server AppFabric" (not present), then in IIS click Configure under "Manage WCF and WF Services" - also not present. Am I missing something? – Chris Moschini Feb 11 '13 at 19:18
  • 1
    @ChrisMoschini The instructions assume you have AppFabric installed (it's not installed by default). You can download it here: http://msdn.com/appfabric – veljkoz Oct 18 '13 at 11:37
  • @veljkoz the link you provided is no longer working, but Windows Server AppFabric can be installed via Microsoft Web Platform Installer, easily. – balint Oct 02 '14 at 19:08
  • @TheNextman Thanks but it did not worked for me as indicated on [Cannot keep alive Web Application on IIS after Recycling or Restarting](http://stackoverflow.com/questions/33593602/cannot-keep-alive-web-application-on-iis-after-recycling-or-restarting). Any help pls? – Jack Nov 08 '15 at 12:40