Asyncronous operation

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.
 
S

Steven Cheng[MSFT]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top