473,811 Members | 3,290 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Starting a new thread in ASP.NET application

Hello,

Some pages in ASP.NET application perform very process-intensive tasks
(parsing large flat files, saving data to SQL Server, etc.. ) Some tasks
might take longer to execute than users' expectations. New thread(s) will be
started for these process-intensive tasks, so asp.net process can take over
and send response to the client's browsers.

Does anyone see any issues with this scenario?
How can application inform user when thread is completed or failed after
response was sent to a browser.
Can some kind of client-side object maintain connection with the server and
inform a user of the progress and when thread is completed/failed.
Any other alternatives?

Thank you in advance.
Nov 17 '05 #1
3 6363
Check out
Sending 1000's of Emails from your webpage
http://www.aspnetemail.com/samples/webmailer.aspx

I built it for customers who need to spawn a new thread, in asp.net to send
out their newsletter.

hth,
Dave
www.aspNetEmail.com
"Lenny" <no****@a.com > wrote in message
news:1h******** ************@co mcast.com...
Hello,

Some pages in ASP.NET application perform very process-intensive tasks
(parsing large flat files, saving data to SQL Server, etc.. ) Some tasks
might take longer to execute than users' expectations. New thread(s) will be started for these process-intensive tasks, so asp.net process can take over and send response to the client's browsers.

Does anyone see any issues with this scenario?
How can application inform user when thread is completed or failed after
response was sent to a browser.
Can some kind of client-side object maintain connection with the server and inform a user of the progress and when thread is completed/failed.
Any other alternatives?

Thank you in advance.

Nov 17 '05 #2
I've got a similar process.

User uploads a couple of 100+meg flat files, we process them for bulk mail
center codes, postnet barcodes, etc and separate flat files based on the
mail center. The entire result is emailed as a zip package, and an entry in
the web-based archive.

Processing runs 1 to 15 minutes, depending on client connection speed and
size of job.

I leave the process running on the initial thread, sending a "+" sign every
100 rows to indicate progress. Worked fine until WINDOWS 2003 and VS 2003 -
now the process dies EXACTLY 105 seconds into the job. I've researched
Machine.Config, Web.Config etc, etc. (Even posted here - nobody responded)
and I have yet to find the problem.

That's my only concern with your project.

BTW, we put a message at the top, just as processing starts:
"This process will continue to completion, even if you close the browser"

That helps... You can monitor Response.IsClie ntConnected to see if the
escape (stop) your page, or navigate out. Then you can kill the process.

G.L.
"Lenny" <no****@a.com > wrote in message
news:1h******** ************@co mcast.com...
Hello,

Some pages in ASP.NET application perform very process-intensive tasks
(parsing large flat files, saving data to SQL Server, etc.. ) Some tasks
might take longer to execute than users' expectations. New thread(s) will be started for these process-intensive tasks, so asp.net process can take over and send response to the client's browsers.

Does anyone see any issues with this scenario?
How can application inform user when thread is completed or failed after
response was sent to a browser.
Can some kind of client-side object maintain connection with the server and inform a user of the progress and when thread is completed/failed.
Any other alternatives?

Thank you in advance.

Nov 17 '05 #3

Check out
Sending 1000's of Emails from your webpage
http://www.aspnetemail.com/samples/webmailer.aspx

I downloaded your demo, this would work great for me. Thanks a lot!!!
Nov 17 '05 #4

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

Similar topics

12
2956
by: serge calderara | last post by:
Dear all, I have an application which is suppose to start another executable process. As soon as that process is running, I need to retrive its handle. The problem of the particular process I am starting is that it has a welcome window first which gets displayed and then the real windows after a while,in other words it means that the process name is the same, but the handle I need to retrive is the one from the final window and not the...
1
1787
by: Glenn | last post by:
I have used this code successfully in a form application. I tried to add the same code in a service and have not been able to get the application to start. I have the service starting with a local account and the Interact with the Desktop is Checked. Windows media player seems to start but then closes almost immediately. I would appreciate any help. Thanks, Glenn
5
2392
by: Cybertof | last post by:
Hello, How to start 2 winforms at the same time (in 2 threads ?) ? Application.Run(new frmForm1()); Application.Run(new frmForm2()); Here frmForm2 waits frmForm1 to be closed before beeing displayed.
2
1864
by: Serge | last post by:
Hi, I am having a thread hang problem in my c# code. The example on the website: http://csharp.web1000.com/ is a simplified version of my problem. You will see in the form that a method TestThread increments a number in the textbox on the form. TestThread is called from a worker thread (2nd thread) using a TimerThread.
2
1889
by: karl | last post by:
I have a windows service that kicks off a 'monitor' thread which in turn kicks off 4 additional threads. These 4 threads basically are listen on a designated socket and report back any errors (exceptions) to the monitor thread. Of course, all works well on my box. Yesterday I installed the .NET Framework 1.1 on a new server and then installed my service. It appears that everything is starting but when I perform a netstat - a...
2
1198
by: trint | last post by:
I need to know what the safest way to loop(without starting off in a new thread since UI controls are involved) is...and how to pause in the loop so that the program runs normally. Any help is appreciated. Thanks, Trint
4
2430
by: Kristof Despiere | last post by:
Suppose you have one domain, filled with a couple of users. What needs to be done now is I need to start a windows application from a webform by pressing a button on the webform (for example). The problem is that the user who "owns" the service is always the ASPNET account. That's not good since you don't see the actual application (because it's owned by ASPNET). I've tried changed the processmodel section in the machine.config file to...
6
2041
by: cedric | last post by:
hello, I encounter a problem using threads. I have a simple code to use a thread : cSurveillanceBorne = New clsThreadSurveillance _SurveillanceThread = New Thread(AddressOf cSurveillanceBorne.SurveilleBorne) _SurveillanceThread.Start() This code work perfectly on my workstation. I use Visual Studio 2003, and the CLR version is 1.1.4322.573
1
9667
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
0
9726
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10647
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10384
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10395
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10130
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9204
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6887
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
3017
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.