473,382 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Asyncronous operation

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.
Oct 2 '06 #1
3 1356
Rob,
There have been a few articles on this lately as it seems to be a
popular topic. Here are a few good articles I found on this:

http://www.eggheadcafe.com/articles/20060918.asp

http://www.ftponline.com/vsm/2006_06...olumns/aspnet/

http://pluralsight.com/blogs/fritz/a...0/19/2892.aspx

http://samples.gotdotnet.com/quickst.../GETAsync.aspx
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006
"Rob Nicholson" <in******@community.nospamwrote in message
news:Ow**************@TK2MSFTNGP02.phx.gbl...
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.

Oct 2 '06 #2
Thanks - will have a read.

"Mark Fitzpatrick" <ma******@fitzme.comwrote in message
news:uR*************@TK2MSFTNGP02.phx.gbl...
Rob,
There have been a few articles on this lately as it seems to be a
popular topic. Here are a few good articles I found on this:

http://www.eggheadcafe.com/articles/20060918.asp

http://www.ftponline.com/vsm/2006_06...olumns/aspnet/

http://pluralsight.com/blogs/fritz/a...0/19/2892.aspx

http://samples.gotdotnet.com/quickst.../GETAsync.aspx
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006
"Rob Nicholson" <in******@community.nospamwrote in message
news:Ow**************@TK2MSFTNGP02.phx.gbl...
>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.


Oct 2 '06 #3
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/P...cle.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...4/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.

Oct 3 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ivar | last post by:
Hi, Is SocketOptionName.ReciveTimeout usable with asyncronous socket methods ? With Recive method it works but BeginRecive can't get it working.
0
by: Andrés Joaquín | last post by:
Hello, I have a problem with a TCP Asyncronous Server Implementation. I take the solution from the Microsoft Site (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/ht...
1
by: Nathan | last post by:
On my .NET web project I am trying to make an asyncronous call to a function using IAsyncResult. The function will process for about a 1/2 hour. before it completes, the process abruptly ends as...
1
by: alex002 | last post by:
Dear all, I am writing to a C# program to connect to the telnet server and getting data; however, I know that I can use either TCPClient and Asyncronous Socket to do the program. However, I...
0
by: Paul Fi | last post by:
what is the point of asyncronously processing requests or responses at channel sinks when we can do asyncronous calls at the .net remoting application level ? do we consider AsyncProcessResponse...
1
by: il RicercatoreSbadato | last post by:
title: asyncronous Socket and EndAccept() question: hi to all, I am working with a server that uses the sockets in a asyncronous way. When I want to STOP the server I do the following: -...
4
by: aaronwmail-usenet | last post by:
Hi. I'm working on a project where a javascript program will get into the middle of some very complicated operation and then decide it needs to use to download an xml file from a server. ...
2
by: Murali | last post by:
Hi friends, in Javascript without using Microsoft.XMLHTTP how can i do Asyncronous operation ? any experts pls bye
3
by: OJ | last post by:
Hi, I have written a small C# 2.0 DLL which acts as a client to a Socket based server over the internet. I have written both synchronous and asynchronous methods to connect, send, and receive data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.