service

Delay service at system startup.

I'm using VB 9. I want the only thread in my Windows Service (that is set to Automatic) to start its work 5 minutes after Windows starts. But if the user restarts the service manually, the thread should start working immediately when the service starts. How do I achieve this? ...

Signed assemblies prevent my service from starting

When I sign the assemblies in my service with the Verisign signtool.exe, it fails to start when the machine starts, on a machine running Windows 2003 Server. The event log has two events: "Timeout (30000 milliseconds) waiting for the xxx Service service to connect." and "The xxx Service service failed to start due to the following error...

Fastest method of communication with a Windows service

We are running a service that requires fast communication with another process. Currently we are using WCF NetNamedPipeBinding in buffered mode to invoke methods in the service, which seems to offer the least overhead of the available WCF bindings. Is there a faster way to do this using managed code? Edit: Bunching requests as suggested...

How to view current users with Performance Monitor?

Tinkering with Performance Monitor, I see: Web Service -> Current Connections Web Service -> Get Requests/sec Are there better counters to look at? Or perhaps other software? Thanks, -E ...

Wcf service Error

When i am trying send large size files through wcf service, its give Unexpected sercice response, bad request 400 error. if i send bellow 16000 bytes size files does not give error. how do i increase the size, and help me to resolve the issue. Thanks to all. by Senthil ...

How can I make service apps with Visual c# Express?

I have build an application to parse Xml file for integrating data in mssql database. I'm using Visual c# express. There's a way to make service with express edition or I a have to get Visual Studio to do it? ...

How do I create a Setup And Deployment project that can run any number of times on a machine without requiring an uninstall?

How do I create a Setup And Deployment project that can run any number of times on a machine without requiring an uninstall? I've created an installer to install a WCF service to an IIS directory. It does more than just xcopy, it asks the users questions to correctly setup web.config. The problem is when it can only be installed once ...

System.IO.FileNotFoundException when loading web service

I've a simple, if not primitive, C++/CLI .NET 2.0 class library. It is used in order to wrap some C++ legacy code for the Web Service. The following facts appear to be true: Primitive C# test program calls class library and it works. If class library does not refer to any modules of our code base, it works as well as part of the web se...

Batch Script to Install or Uninstall a .NET Windows Service

I have no experience writing batch scripts, but I was wondering if there was a way to install a .NET Windows service using installutil.exe using such a script, or uninstall the service if it is already installed, ideally with some kind of confirmation that I actually would like to perform the uninstall (e.g. press y to uninstall). Here ...

Deploying a WCF Service

I will be deploying my first WCF service in the next few days on a Test server (MS Server 2003 O/S). This particular service will do nothing more than run some queries against a SQL Server 2005 (most likely on the same box) and return the values to the caller. My question is, unlike the "classic" web services, with WCF I now have cho...

.NET framework based windows service and COM callbacks (connection points)

Hi! I'm currently developing on application that uses legacy COM-based object. This object resides in standalone executable and have COM connection point defined on it. When I subscribe on this connection point within WinForms application everything is ok - all callbacks received smoothly. When using same code from NET framework based Wi...

WCF Service - runtime not seeing the ServiceContract on Interface

I'm new to WCF and trying to get my first service running. I'm close but stuck on this problem. In my interface definition file, I have this: [ServiceContract(Namespace="http://mysite.com/wcfservices/2009/02")] public interface IInventoryService { [OperationContract] string GetInventoryName(int InventoryI...

How do I create a windows service with Python

This is a duplicate of this question. Please close. I really need my python program to run as a windows service. How can I do this? ...

Hosting a WCF Service in Vista

I put together a small WCF service in VS2008 and when I try to run the host using an HTTP protocol, it bombs because it doesn't have the proper rights to do so. On my "Host.Open()" line I get this exception: "HTTP could not register URL http://+:9001/. Your process does not have access rights to this namespace." I did not seem to have ...

android: check if a service is running

How do I check if a background service (on Android) is running? I want an android activity that toggles the state of the service -- lets me turn it on if it is off and off if it is on. ...

Trying to get a handle on Web Services?

I'm trying to get a handle on web services and was wondering if I get some help from the SO community. In particular, a I'm trying to get a handle on WSDL, UDDI, SOAP AND JAX-P, because I'm most familiar with Java. Edit: Please tell me if I'm right or wrong on these definitions: WSDL: This is a schema to describe what kind of XML ...

optimize web service client side performance?

Hello everyone, I am using the automatically generated proxy for a ASP.Net asmx web service. I find when send HttpWebRequest to my web server, it is the throughput from client side is very good (very big number). But when using the automatically generater proxy, it is very slow. I want to know some general ways to optimize the performan...

How can I tell that SQL Server is started and ready to use?

I have an app that runs on system startup that needs to talk to the local SQL Server 2005 installation. I'm using the ServiceController class to wait for it to enter the "Running" state, and most times this works fine. However, sometimes on a cold boot, my first query fails, saying that it couldn't log on the current user. It sounds l...

Can AutoIt scripts be executed as a service for GUI actions?

I'm using AutoIt to start and automate some clicks on special GUI application. I need to activate the script each hour. Will AutoIt script work when used as a service? UPDATE: Referring to the first answer. The script will be run as a service (not scheduled task) because don't want to use task scheduler on server. ...

Restarting a windows service

Hi, I want to schedule a restart of my custom services automatically using a batch file with net stop, net start. When net stop runs does it abort anything that is being done immediately? Just wondering what will happen if in the middle of processing? Malcolm ...