Results 1 to 3 of 3

Thread: [2005] Web Service PErforming Ver long operation is Aborted, how can i prevent this ?

  1. #1

    Thread Starter
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    [2005] Web Service PErforming Ver long operation is Aborted, how can i prevent this ?

    hello all,
    it have been a while since i posted here, but i trust the gurus here is still ready for a tricky question.

    i have a webservice that contains some maintenance methods, this maintenance methods can take up to 7 - 15 minutes run time depending on server usage at run time. this task should be called once a day to generate some maintenance records and database organization logic.

    the problem is , in some cases when the webservice call exceeds about 8-10 minutes, the webservice run is being aborted by a thread aborted exception.

    i think the iis is aborting the operation that is taking too long as it may consider this as a memory leak ? but it is not.

    Please note that this is not a timeout at the client side, becuase this maintenance method on the webservice is declared as oneway method. this means the client just initiate the task and dont wait for answer back. this way this error is not a client time out error.

    can anybody tell me what to do to prevent iis from killing my execution process ??

    thx in advance

  2. #2

    Thread Starter
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    Re: [2005] Web Service PErforming Ver long operation is Aborted, how can i prevent this ?

    anybody ?

  3. #3
    Fanatic Member bgmacaw's Avatar
    Join Date
    Mar 2007
    Location
    Atlanta, GA USA
    Posts
    524

    Re: [2005] Web Service PErforming Ver long operation is Aborted, how can i prevent this ?

    Don't run it under IIS. Use remoting to run your program separately from the IIS managed web service call. This gives you the advantage of not tying up your web server but also the flexibility to move the process to another system if you needed to. The program where your actual process is running could be written as a Windows Service.

Posting Permissions

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



Click Here to Expand Forum to Full Width