Last post Mar 27, 2013 12:09 AM by SGWellens
Mar 26, 2013 10:01 PM|spdev101|LINK
I have an ASP.NET page which needs to do a search once the user selects the filter criteria. The problem is that the search takes a long time to complete around 30-45 minutes. As far as I know this will result in a timeout. The option I can think of at
the moment is to implement the search process in a Windows Service which the ASP.NET page will trigger, but is there an easier way than this?
Mar 26, 2013 10:41 PM|BrockAllen|LINK
For something that runs that long, yes, you'll need some hosting app (like a windows service) that you have control over the lifetime. You do not have control over the ASP,NET app domain lifetime, so it can't run there.
Mar 27, 2013 12:09 AM|SGWellens|LINK
You can put the task into a web service.
Once running, you can have client page query the service to get the state. This requires that you have Session State enabled in the web service. How this is done depends on the version and type of web service.
I blogged about it