Starting a new thread in ASP.NET application

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

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


    Lenny Guest

  2. Similar Questions and Discussions

    1. URGENT> starting a application from ASP
      Hi all, I want to execute a VB application from a ASP page. Want I want to do is that I write some parameters to a database and then start the...
    2. every client of an application is a thread of fmsserver?
      I'm deciding about an application structure, but I've a doubt about clients/thread. I have an application with 10 istances and every instance has...
    3. ColdFusionMX7 Application Server Service Not Starting
      I'm getting a "Vendor Specific Error Code 2" when I try to start my CFMX7 Application Server service on a Win2KServer box running IIS. Does anyone...
    4. Starting ids SERVer but stops again with listener-thread: err = -25572
      hi all. i just installed IDS 9.30 in windows XP. and am getting the following errors. Can any one help me. While Installation i got the...
    5. SIGSEGV in memcpy() when starting a n application
      Hello, I am getting SIGSEGV immedaitely in the initialization of my app. by GDB I see that it happens in memcpy() when starting a n application ...
  3. #2

    Default Re: Starting a new thread in ASP.NET application

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

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

    hth,
    Dave
    [url]www.aspNetEmail.com[/url]


    "Lenny" <nospam@a.com> wrote in message
    news:1hWdnTylBcRmNZqiXTWJkw@comcast.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.
    >
    >

    dave wanta Guest

  4. #3

    Default Re: Starting a new thread in ASP.NET application

    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.IsClientConnected to see if the
    escape (stop) your page, or navigate out. Then you can kill the process.

    G.L.


    "Lenny" <nospam@a.com> wrote in message
    news:1hWdnTylBcRmNZqiXTWJkw@comcast.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.
    >
    >

    David Waz... Guest

  5. #4

    Default Re: Starting a new thread in ASP.NET application


    > Check out
    > Sending 1000's of Emails from your webpage
    > [url]http://www.aspnetemail.com/samples/webmailer.aspx[/url]
    >
    I downloaded your demo, this would work great for me. Thanks a lot!!!


    Lenny Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139