473,320 Members | 2,092 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,320 software developers and data experts.

A timer that do not work.

MA
Hi all!

I have a webservice that checks for mail every x seconds with a timer.
I had it set up on a win xp computer and it was working fine.

When I recently moved my webservice to a win 2003 server, it seems like the
timer stops working after a while. I have no idea why.

How can it just stop? I´m really out of ideas here and need help. Someone
that have experienced the same problem?

/Marre
Nov 16 '05 #1
3 1248
Your web service application is going to stop after some period of
inactivity. Web services are not long running programs; you should probably
use a Windows service or one of any number of available task scheduler
applications.

DalePres

"MA" <news@.removethis.supremelink.se> wrote in message
news:37*************@individual.net...
Hi all!

I have a webservice that checks for mail every x seconds with a timer.
I had it set up on a win xp computer and it was working fine.

When I recently moved my webservice to a win 2003 server, it seems like
the timer stops working after a while. I have no idea why.

How can it just stop? I´m really out of ideas here and need help. Someone
that have experienced the same problem?

/Marre

Nov 16 '05 #2
MA
Ok. Then I really have to change that :)

Is this something thats new for win 2003? When I run my webservice on the
other computer (with win 2000, not xp as I wrote erlier by mistake), it
could be running "forever"....I had it up for several weeks only restarting
when the old computer didnt want to run, without problem.

/Marre
"DalePres" <don-t-spa-m-me@lea-ve-me-a-lone--.com> wrote in message
news:ea*************@TK2MSFTNGP14.phx.gbl...
Your web service application is going to stop after some period of
inactivity. Web services are not long running programs; you should
probably use a Windows service or one of any number of available task
scheduler applications.

DalePres

"MA" <news@.removethis.supremelink.se> wrote in message
news:37*************@individual.net...
Hi all!

I have a webservice that checks for mail every x seconds with a timer.
I had it set up on a win xp computer and it was working fine.

When I recently moved my webservice to a win 2003 server, it seems like
the timer stops working after a while. I have no idea why.

How can it just stop? I´m really out of ideas here and need help. Someone
that have experienced the same problem?

/Marre


Nov 16 '05 #3
MA
Hi!

As a "first step" i implemented this as a windows applikation. I will use
the Windows Service alternative as an option to my application.

It seems that this is working.

Thanks for giving me an answer to what causing this problem!

/Marre

"MA" <news@.removethis.supremelink.se> wrote in message
news:37*************@individual.net...
Ok. Then I really have to change that :)

Is this something thats new for win 2003? When I run my webservice on the
other computer (with win 2000, not xp as I wrote erlier by mistake), it
could be running "forever"....I had it up for several weeks only
restarting when the old computer didnt want to run, without problem.

/Marre
"DalePres" <don-t-spa-m-me@lea-ve-me-a-lone--.com> wrote in message
news:ea*************@TK2MSFTNGP14.phx.gbl...
Your web service application is going to stop after some period of
inactivity. Web services are not long running programs; you should
probably use a Windows service or one of any number of available task
scheduler applications.

DalePres

"MA" <news@.removethis.supremelink.se> wrote in message
news:37*************@individual.net...
Hi all!

I have a webservice that checks for mail every x seconds with a timer.
I had it set up on a win xp computer and it was working fine.

When I recently moved my webservice to a win 2003 server, it seems like
the timer stops working after a while. I have no idea why.

How can it just stop? I´m really out of ideas here and need help.
Someone that have experienced the same problem?

/Marre



Nov 16 '05 #4

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

Similar topics

6
by: Dan | last post by:
I've created a pocketpc app which has a startup form containing a listview. The form creates an object which in turn creates a System.Threading.Timer. It keeps track of the Timer state using a...
8
by: Jim Hammond | last post by:
The following code tries to excute a function 10 seconds after Page_Load by using a Timer, but the callback never gets called. private void Page_Load(object sender, System.EventArgs e) { ...
12
by: Crirus | last post by:
Hi! I havea control that display messages... I added a timer to it Every time a noew mesaage should be displayed I do the following: Private sub ShowMsg(message as string) Me.lblStatus.Text...
2
by: John David Thornton | last post by:
I've got a Windows Service class, and I put a System.Threading.Timer, and I've coded it as shown below. However, when I install the service and then start it in MMC, I get a peculiar message: ...
5
by: muzilli | last post by:
Howdy all, I would like to know how can I insert a Timer object in my class library? This timer object will start and stop in a determinated part or event of my program. I know how to do...
4
by: Lemune | last post by:
Hello everyone. I'm using vb 2005. I'm creating program that run as service on windows. And in my program I need to use timer, so I'm using timer object from component. I try my source code on...
4
by: grayaii | last post by:
Hi, I have a simple form that handles all its paint functionality like so: this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true); And the entry point to this...
8
by: =?Utf-8?B?RGF2ZSBCb29rZXI=?= | last post by:
I have a Timer that I set to go off once a day, but it frequently fails! In order to debug I would like to be able to check, at any moment, whether the Timer is enabled and when it will next...
11
by: Hotrod2000 | last post by:
I'm quite new to programming but I'm having problems getting a timer to work in visual studio.net I've created a timer on a form, enabled it and then typed the following code (from the mdsn...
8
by: Jerry Spence1 | last post by:
Do Timers operate on the UI thread, or do they have it's own thread? I'm trying to assess the pros and cons for using a timer or a thread for a certain application. -Jerry
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.