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 3 1260
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@.removeth is.supremelink. se> wrote in message
news:37******** *****@individua l.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
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******** *****@TK2MSFTNG P14.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@.removeth is.supremelink. se> wrote in message news:37******** *****@individua l.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
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@.removeth is.supremelink. se> wrote in message
news:37******** *****@individua l.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******** *****@TK2MSFTNG P14.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@.removeth is.supremelink. se> wrote in message news:37******** *****@individua l.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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 TimerState object similar to the
example in the System.Threading.Timer documentation. The method which
handles the timer events, among other things, periodically calls a method in
this TimerState object which raises an event to the startup form,...
|
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)
{
// Set timer to call Page_PostLoad in 10 seconds
|
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 = message
tmrStatus.Start()
tmrStatus.Interval = 3000
|
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:
The MyService service on Local Computer started and then stopped. Some
services stop automatically if they ahve no work to do, for example, the
Perforamnce Logs and Alert service.
I tried switching to a System.Threading.Timer and that didn't work...
|
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 this in Delphi or using a RAD tool and insert the
Timer object in a form, but how to do in C# by hand and in a class
library (without form), I don't know.
| |
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 another project that use windows
form and it work. But when I implement my source code on my program
that run as service on windows (I have change the code so it would work
on service but I still use timer object from component), and it doesn't...
|
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 program is like so:
static void Main()
{
|
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 Elapse.
Is there any way -- whether in my code, or in the O/S -- to determine when a
Timer is scheduled to Elapse?
|
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 library as I thought this would be a
good start!!!) but nothing happens :-
Imports System.Timers
|
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
|
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,...
| |
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...
|
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,...
|
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...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |