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

Windows Service & Timer event

I have a windows service with a Timer which runs just fine on my Development
machine, but the "timer_elapsed" is not being executed on the Production
machine.
same .exe on both machines.
i'm writing events to the event log, so i know the dev machine is fine, but
not the production machine.

what gives?
Nov 16 '05 #1
5 1716
caulker,

What kind of timer are you using?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"caulker" <ws*******@ucsd.edu> wrote in message
news:eH**************@TK2MSFTNGP11.phx.gbl...
I have a windows service with a Timer which runs just fine on my Development machine, but the "timer_elapsed" is not being executed on the Production
machine.
same .exe on both machines.
i'm writing events to the event log, so i know the dev machine is fine, but not the production machine.

what gives?

Nov 16 '05 #2
standard toolbox timer

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:Or*************@TK2MSFTNGP11.phx.gbl...
caulker,

What kind of timer are you using?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"caulker" <ws*******@ucsd.edu> wrote in message
news:eH**************@TK2MSFTNGP11.phx.gbl...
I have a windows service with a Timer which runs just fine on my

Development
machine, but the "timer_elapsed" is not being executed on the Production
machine.
same .exe on both machines.
i'm writing events to the event log, so i know the dev machine is fine,

but
not the production machine.

what gives?


Nov 16 '05 #3
caulker,

Are you using the one under the Windows Forms tab? If you are, then
this won't work, because it depends on windows messages, which are not
enabled in services unless you check that it can interact with the desktop.

Make sure that the timer is the one from the System.Timers namespace,
and it should work.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"caulker" <ws*******@ucsd.edu> wrote in message
news:OP**************@tk2msftngp13.phx.gbl...
standard toolbox timer

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:Or*************@TK2MSFTNGP11.phx.gbl...
caulker,

What kind of timer are you using?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"caulker" <ws*******@ucsd.edu> wrote in message
news:eH**************@TK2MSFTNGP11.phx.gbl...
I have a windows service with a Timer which runs just fine on my

Development
machine, but the "timer_elapsed" is not being executed on the Production machine.
same .exe on both machines.
i'm writing events to the event log, so i know the dev machine is
fine, but
not the production machine.

what gives?



Nov 16 '05 #4
yep, I'm using

private System.Timers.Timer timer1;

and this works just fine on the Dev machine, just not on the Production
machine.

the windows service is running just the timer event is not being
triggered...

very puzzling...

thanks...

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:eW**************@TK2MSFTNGP12.phx.gbl...
caulker,

Are you using the one under the Windows Forms tab? If you are, then
this won't work, because it depends on windows messages, which are not
enabled in services unless you check that it can interact with the desktop.
Make sure that the timer is the one from the System.Timers namespace,
and it should work.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"caulker" <ws*******@ucsd.edu> wrote in message
news:OP**************@tk2msftngp13.phx.gbl...
standard toolbox timer

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote

in
message news:Or*************@TK2MSFTNGP11.phx.gbl...
caulker,

What kind of timer are you using?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"caulker" <ws*******@ucsd.edu> wrote in message
news:eH**************@TK2MSFTNGP11.phx.gbl...
> I have a windows service with a Timer which runs just fine on my
Development
> machine, but the "timer_elapsed" is not being executed on the Production > machine.
> same .exe on both machines.
> i'm writing events to the event log, so i know the dev machine is fine, but
> not the production machine.
>
> what gives?
>
>



Nov 16 '05 #5

Are you sure that that's the problem?

Could it not be that your program doesn't have Event Log access on the
other machine?
Simon Smith
simon dot s at ghytred dot com
http://www.ghytred.com/NewsLook - Usenet for Outlook

On 10 Jun 2004 19:53, "caulker" wrote:
I have a windows service with a Timer which runs just fine on my Development
machine, but the "timer_elapsed" is not being executed on the Production
machine.
same .exe on both machines.
i'm writing events to the event log, so i know the dev machine is fine, but
not the production machine.

what gives?



Nov 16 '05 #6

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

Similar topics

1
by: Artur Kowalski | last post by:
I have a NotifyIcon in my Windows Service project and I am trying to add a ContextMenu to this NotifyIcon or use some of the mouse events. Everything isn't working. I think so base class of the...
2
by: Jesper Stocholm | last post by:
I have created a simple service which just copies a fil to a new file with a new name on certain intervals (the service implements a timer). I have no problems installing the service and the...
7
by: J. Hill | last post by:
I have a Windows Service with a timer but the .Tick event is not being fired/called. Don't know what code to include...I enabled and started the timer...I have the exact same code in a Windows...
5
by: Dhilip Kumar | last post by:
Hi all, I have developed a windows service using the windows service project template in VS.NET. I have used three controls in the service, a timer, performance counter and a message queue...
7
by: Doug Stiers | last post by:
I have a VB app that I'm installing as a Windows Service. I want a subroutine in the app to run every 30 minutes during business hours. How do I do this in VB? I set the startup type as automatic...
4
by: Groundskeeper | last post by:
I can't seem to get a custom UnhandledException handler working for a Windows Service I'm writing in VB.NET. I've read the MSDN and tried various different placements of the AddHandler call, to no...
0
by: Jason | last post by:
Ok, for the life of me, I just don't understand what's going on. I want to use remoting to send messages from a windows service to a windows form app, but I just can't get it to work. So, here's...
8
by: Ollie Riches | last post by:
I'm looking into a production issue related to a windows service and System.Timers.Timer. The background is the windows service uses a System.Timers.Timer to periodically poll a directory location...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
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...
0
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...
0
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,...
0
isladogs
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...

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.