service

System.Threading.Timer

Hi I am new to VC++ .net programming. Please help me out how to use System.Threading.Timer in a windows service VC++ .net code. I tried using form.timer and system.timer class but as it turns out it's a known windows bug and it won't work reliably. I am not able to use system.threading.timers. Please give an example. Nitin ...

Run methods as service c#?

I have a couple of methods that do processing after fetching data.I need call these five services in order 1-5,well I would like to make it a exe that can run from the windows scheduler (so that I don't have to write my own scheduling code).The main reason for this exe is so that it can be run on a server rather than on a desktop and do ...

setup project with windows service installing more then one to different directories

I am writing a service that will run on a machine to push and pull files from one location to another. I want to create an installer that will allow the user to name the service during setup (and description later.) I found this post (http://stackoverflow.com/questions/1070885/specify-windows-service-name-on-install-with-setup-project)...

How do I install Windows Service on remote server

How do I install Windows Service (msi package) on a remote windows server and configure its Logon options. Thanks and Regards, Selwyn ...

CAsyncSocket::Close Crashes

Hey, im doing some client/server stuff in a windows service. Pretty much new to this stuff. The problem I'm encountering is that when I try to stop the service through Service Manager, it crashes. I added some MessageBoxes code, to trace where they are crashing and I found that when it closes the listener socket it crashes!!! I tried t...

Connecting to a Web Service using CoGetObject from a CGI application fails

We have a browser based application, a thin client, which was developed many years ago but is still in production and is still being moved forward. This thin client application is a CGI application and we have run into a critical issue that has stopped us in our tracks. We have a need to have the CGI application talk to a Web Service a...

Releasing a java application on different OS

Hi I have a java application that I want to release as an exe or dwg etc so that users on different platforms can double click it and get it to start running. But for my code to work really well I need it to work as a windows service and whatever the equivalent of this in other OS are. Using Java web start is not a solution because...

ASP.NET application/web service not working on Windows Vista/IIS 7: access right problem?

I have a .NET 3.5 based web service running at http://localhost/serivce.svc/. Then I have an ASP.NET application running at http://localhost/myApp. In Application_Load my application reads some XML configuration from the web service. That works fine on my machine, but: On Windows Vista with IIS 7 the request to the web services fails. ...

Windows XP Pro Service runs using User logon, not using Local System

I wrote a Windows Service using VS 2005 and C# on WinXP Pro SP3. It starts another program which runs to completion and then exits. The service is installed using installutil and serviceInstaller. It is built release and put into the C:\Program Files\MyService directory. The serviceProcessInstaller Account is set to LocalSystem in it's...

how can I make a Windows service beep?

I've got a service that acts as a watchdog for several apps/servers. There are no user sessions on this machine. I'd like the watchdog to be capable of beeping on the internal speaker should something go wrong (that'd be my queue to go fix whatever it's complaining about) when I try the Beep() API on Windows nothing happens - I susp...

Restarting service from a client computer without rights

I have already created the program to restart a SQL database but it only works if the client has the rights. This is going to be done on a local network from a client computer when they can't get a person that has the password on the phone. Any thoughts I'm currently using the servicecontroller to start and stop database. When I don't ha...

Changing ResultHandler of WebService Operation in Flex

How does one change / modify the Result property of a web service operation? For example, I have declared my WebService as follows: <mx:WebService id="ws"> <mx:operation name="Call_One" result="Call_OneRH(event)" fault="Call_OneFH(event)" /> <mx:operation name="Call_Two" result="Call_TwoRH(event)" fault="Call_TwoFH(event)" /> </mx:...

Sql Server 2005 Analysis Service -cannot connect to sql browser

This is my first attempt at using Business Intelligence development studio. I have set up the project and now trying to deploy my changes. When I run the project I get an error ensure that sql browser is running. Done- setting up cubes & mining structure. Checked that database instance is correct. I have checked that sql2005 is running....

console app. Vs windows app.

Hi All, I developed an .net application in console application which job is to submit the files to windows fax server. It is running fine. But when I run the same application in windows service mode, It gives the wait operation timed out error message when it submit the PDF file to fax server. But as per the requirement, I have to giv...

Sending back XML to Web Service

Hi, I have a problem regarding Web service. I can Parse the XML obtained from the web service but I need to send the back to the web service with modifications. Example will be to send text answers to questions back to web service. how to do that? Thanks in advance. ...

How to Prevent System from Shutting down or Restart in a Win32 service?

i want to prevent users from shut down or restart the system. my application runs as a Win32 Native Service (written by C++) and under LocalSystem account. i heard about WM_QUERYENDSESSION it's solution: creating a hidden window and capturing WM_QUERYENDSESSION to prevent shutdown. but this solution is not really clean and also have t...

WCF Web Service Authentication based on AD groups

I have a WCF Web Service which is consuming by C# client application. I’m also having 4 groups stored in Active Directory. Client application should connect this web service by passing login credentials. Requirement: Restrict web service functionality based on windows user credential’s group stored in AD (Active Directory) Pass specif...

Memory leakage in c# windows service multithreading application

I have a windows service multithreaded application for indexing purpose which have six threads. It is working fine except memory leakage. Actually when the service is started, then the service is consuming 12,584kb memory, after some time it is taking memory of 61,584 kb. But after indexing process is complete it is not releasing memory....

C# Service Timeout (30000 milliseconds) waiting for a transaction response in event viewer

I have a C# service. It is a memory and CPU pig. It will run all night, moving data in the database. Around 7 am it post to the event viewer, repeatedly, Timeout (30000 milliseconds) waiting for a transaction response from the ServName service. Then it stops unexpectedly. Does anyone have input as to what this message means, o...

Restrict WCF Web Service functionality based on User Group

Hi, I have a WCF Web Service which is consuming by C# client application. I’m also having 4 groups stored in Active Directory. Client application is passing user credentials to connect this web service. Web service exposing multiple APIs or Methods to be accessed by Client application as follows: [OperationContract] bool Read()...