windows-services

Is it possible to lose messages using MSMQ MessageQueue.Peek with a timeout?

Hello world! I am currently having an issue of losing a message. This error occurs rarely, but happens often enough to be annoying. Here is the context of the issue: I have turned on the message journal on goldmine_service_queue, a MSMQ on Windows 2003 server. I can prove that the message is being inserted into goldmine_service_que...

How to execute an application from windows service

I have window XP 2003 server, which is placed in a room where no one can enter to logon it. for monitoring some applications I created a console application myServer.exe, which dont have any UI, I want that this application (e.g., myServer.exe) start automatically as window bootup (e.g., before window logon) and I need to do this work...

Windows Service Install

I have a WCF Host with an Installer. What I'd like to achieve is to be able to communicate with another WCF service already installed as Windows Service on some machine. Is this possible ? Maybe if I override the Install method of the installer? Is this recommended? Do you guys see another way of achieving this? ...

Windows server dependencies

Hi I have an application which has 3 services which are dependent on SQL server. The database used by my application is present in another machine(different from machine where i have the 3 services). These 3 services are dependent services for SQLserver. I have established an ODBC Connection with my DB in remote machine and my servic...

How to debug windows service which fails in Init() method

I have a windows service which fails in Init() method and throws some exception , so only way for me to check what the error is by looking at the event log. I want to debug the windows service, but the problem is that i can attach debugger only when service is rnning, in my case it fails in Init() method only. Any idea ? ...

Am I using ThreadPool correctly & performance...

I have a .net windows service that works it's way through a queue of items and does some research on each one. I'm trying to change it to a threaded model so that batches items can be researched concurrently rather than doing each item sequentially. I know this isn't the perfect solution (it currently has to wait for the slowest item t...

Server Development Tool?

Hi, For my programming tasks I use about 2-3 remote servers to deploy and run my code against different conditions. This cannot be emulated locally as the server configuration requires powerful hardware. Most of time I need to stop service, update binareis, start service, view logs in realtime, download logs. Currently I'm doing this ma...

Get the current UserProfile path from within a Service

Hello, I wrote some code to detect a users proxy information. This works when I run the program directly, but it doesn't work if the program from being called by a service. The service isn't able to know the current users folder path to grab the users Firefox settings. The program needs to be run by a service... how can the service ge...

calling windows service using silverlight

How can i call a windows service using silver light? ...

Share private assemblies between NT service and WCF service (without GAC)

I have a WCF service (.svc) and a NT service (.exe) that need to share private assemblies (without resorting to using the GAC). Currently I have these two directory structures \MyService\service.svc \MyService\web.config \MyService\bin\privateassembly.dll An IIS virtual directory pointing to \MyService and \MyApplication\myapp.exe \...

running programs without session

Hi; I run my programs and want them to go on running although i logged off from the system. Is there a way to do this without windows services? Here is what i want: I remote connect to the server, I log in to the server, I start my program. I log off from the server but my program continues to running... thanks. ...

Singleton or not

Hi there.. I have a windows service running.Inside this service I have hosted some service (WCF). I need to have some kind of a "in memory data holder" class. The purpose of this class is to hold not-persistant data as long as the windows service is running. This class must be accessible thru the WCF services. They put some values in t...

MSMQ backed WCF service hosted in a windows service fails on startup

I have a WCF service hosted in a Windows service that I set to Automatic so it will start automatically when the server is brought up. The service is endpoint is MSMQ backed. When I start the service manually, everything is good. But when the service starts on bootup, I get a MSMQ exception: System.TypeInitializationException: The typ...

Invoke a windows application from a windows service on system shutdown

Hi, I am developing a windows service in .Net 3.5 in C#. This service is used to periodically invoke a windows form. Now I would like to hook an event to the service so that when the user tries to shut down the system, then also the windows form will appear, preventing the shut down process. User can then only make the system shutdown t...

Why does the size of my compiled file decrease?

i did some modification on my project windowservice. Previously it was 56kb. But after modification its size decreased to 54kb.Actually modification increased number of coding,then why size is decreasing, Any idea about this feature ...

How can I get my TCP listener service to terminate correctly?

I'm writing a Windows service which starts a TCP listener. The core code works fine, but I'm having several problems with the mechanics of a Windows service. Right now, when my service starts up, it creates a thread and starts the TCP listener in the thread. Then, when the service stops, it terminates that thread: Public Class txnSoc...

Get the disabled status of a Windows Service

Hi, I have written a windows service and has set its startup type to be 'Automatic'. But after installing the service a user can change its type to 'disabled'. Is there a way by which I can identify the status of this service after service installation? Can I prevent a user from changing the startup type so that it will always be 'Aut...

When you move a new version of a dll to the GAC, will it be automatically updated in the running services?

Or do I have to restart each service that uses it? ...

Why is a .NET x86 windows service not displayed with *32 in Task Manager?

Hi, I created a dummy windows service using .net 3.5. The service has been compiled for x86 explicitly (32BIT corflag is set). Process Explorer from SysInternals correctly identifies the process as a 32-bit process. However, task manager does not append the "*32" to the process name. Why is that? Cheers, Alex ...

.NET Tear Down a Windows Service

I'm in the middle of building a simple windows service and I'm running into a small issue. The service runs just fine, the OnStart method creates a worker process that listens for incoming UDP connections. The problem I'm having is that when I either click STOP on the service, or RESTART, the service stays running in the task manager. ...