Asyncronous operation

  • Thread starter Thread starter Rob Nicholson
  • Start date Start date
R

Rob Nicholson

I've developed a ASP.NET website which is running on a Windows 2003 Server
with IIS6. I need to be able to run an asynchronous task that checks a POP3
mailbox, processes an email, writes data into the database and send SMTP
emails back out. All of this is implemented and working fine except the
asynchronous task bit.

In a traditional client/server environment we'd probably write a service to
carry out this operation. The same is perfectly feasible on the Windows 2003
server box but as IIS is running all the time, as it our website (if not
just waiting for an HTTP request) then I wondered if there was some
mechanism that can do what I need within ASP.NET itself or maybe a feature
of IIS 6.

Thanks, Rob.
 
Hello Rob,

I think what you want to do is like creating a background thread to do some
scheduled job constantly. If this is the case, a common means is create a
background thread and do those jobs in the thread proc function. Here are
some web articles describing this:

#Background Processing, and Processing E-mails from ASP.NET
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=442

#Create Custom ASP.NET Jobs For Background Processing On Single or Multiple
Threads The Community Server Way!
http://www.kdkeys.net/blogs/kingsley.tagbo/archive/2005/04/10/4525.aspx

Please feel free to post here if you have any further questions.


Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top