Hello,
I'd like to have a script that stops a certain windows service,build or rebuild a solution and runs the service after the build process finished.
Should I use Msbuild for this ? Or is there any other way ?
...
Dear Sirs,
I am newbie in Delphi, but I need to fix Delphi code in order to make network disks to be mounted when "Service start" is executed. By default when my application is started via Windows Service network disks are not accessible for application, so the solution is to insert UNC mapping script in my service. Can you help me with...
What's the difference between a Windows service and a standard exe?
...
I have rebuilt my Delphi service that uses SvCom on a 64 bit machine. I have debugged the service and it all seems to work fine. However, when I install the service it works fine but on stopping, the service does stop but I get an error : "Error 1061 : service cannot accept control messages at this time".
Any ideas?
JD
...
I'm working on a .NET app that calls 3rd party web services over the internet. The services do not use SOAP, so we manually construct an XML request document, send it to the service via HTTP, and retrieve an XML response.
Our code is a Windows service that is run in the context of a normal Windows domain account, and sits behind a proxy...
I've create a setup project for my windows service.
It installs fine, however, if i uninstall the project (either by add / remove programs, or right click the setup project in VS - Uninstall) it does not seem to remove the service.
I have to use sc delete at the command line to do this, and then restart.
Have i set something up wrong?
...
I have a server application that I install as a Windows service. I want to run two different versions of the same thing on the same server, they differ by the build I am on and the configuration. One being a beta version and the other being the live version. I can install two separate copies of the application on the server just fine but...
I am building a reusable framework for building scheduling services using the .NET Framework. My code is distributed as a library, which is then referenced by the user in a console application. In the main entry point of the application, the user is asked to transfer control to a static method in the library, which will commence job sche...
Hi,
I am getting in out of memory exception while using system.drawing intensively in my windows service.
here is a part of my code:
FileStream fs = new FileStream(ImagePath, FileMode.Open, FileAccess.Read);
img = (Image)Image.FromStream(fs).Clone();
The exception is not only raised in this point, it is also raised in other points so...
I have a .NET Windows Service that has a timer with interval set to 10 seconds. Every 10 seconds, it queries the database for any work to be done, picks up top 3 work items and processes them. The time taken to process each work item would depend on the user. It might range from a few seconds to several minutes.
I feel that 10 seconds ...
I need to play a wav file from a C# application running as a Windows Service. I have tried both System.Media.SoundPlayer and a P/Invoke call to WinMM.dll (which is probably what SoundPlayer is doing).
[DllImport("WinMM.dll")]
private static extern bool PlaySound(string fname, int Mod, int flag);
If I run my code as a console applica...
I have a Windows service class deriving from ServiceBase that uses a System.Timers.Timer to run code at frequent intervals. The handlers for OnStop and OnPause use some signalling with the timer thread to check if the timer is still running and waits for it to finish.
Is there a recommended way of handling delay errors in this situation...
Hi,
I want to write a windows service in C# that will wait for a change in the particular table in PostgreSQL database and then operate based on the data from the last inserted row.
As far as I know (I'm new to PostgreSQL) I can use triggers to execute a function in structural code - but how to make it pass the data to my service?
Tha...
Hi,
I am building a .NET windows service which is using an unmanaged C++ dll.
both of my service and the c++ dll are using multi threading.
I am running out of memory after some time (hours) while processing.
I tried to measure the number of threads using "Performance counters"
and I monitors the following values:
# of current logical T...
I've developed a .NET based Windows service that uses part managed (C#) and unmanaged code (C/C++ libraries).
In some domain environments (e.g. Win 2k3 32bit server inside domain abc.com) sometimes the service takes more than 30 seconds to start (especially on OS restart), thus failing to start the service. I suspect that it has somethi...
Hi All,
Is it possible to programmaticaly configure COM+ service.
I need to do the following using C# or any script
Open Administrative Tools -> Component Services
Expand Components Services -> My Computer -> COM+ Applications
Right Click HyperV Environment Manager(COM+ service name) andselect Properties.
Click on Pooling & Recyclin...
Scenario:
A WCF service running as a Windows Service. Account is "User".
What is done:
I have overridden the OnBeforeInstall in the projectinstaller to be able to set username and password from a config file.
What I would be able to do:
I'd like to be able to set the starttype as Automatic (Delayed Start)
What I have tried:
...
I have created a WCF service using the NetMsmq binding for which i created a private queue on my machine and executed the project. This works fine as such and my WCF service is started and accesses the message using the queue in the debugging environment. Now, I wanted to host the service using the windows service and for the same I crea...
When I create a .NET Windows Service, there is an App.config file. When I compile the service, it creates a ServiceName.exe.config in the bin directory and there is also a ServiceName.vshosts.exe.config
Q1) What is the significance of multiple config files?
When I change a setting in the App.config it does not take effect until I unins...
I have made Windows services with Visual Studio, and created service installers in them (so they install correctly with installutil.exe).
Is it possible for another .NET app to be given one of these service .exe files and be able to read (for example) the name and description properties of the installer?
...