windows-services

What resources does .NET Windows Service use?

Does a process intensive Windows Service that handles heavy requests use more CPU, more RAM or both or neither? In a nutshell, this Windows Service uses a 3rd party component in processing requests that take a long time to complete. Anyone? Thanks ...

Using ADFS 2.0 with non-.NET services

I am looking at ways to tie together a number of Windows-based web services together under single-sign-on. Microsoft's Windows Identity Framework and ADFS 2.0 are the perfect tools for the job, except that not all of our web services are written in .NET. One is classic ASP and another PHP. Are there existing libraries that will work for ...

net start command delayed ??

Hi, I have some slow embedded PC's running Windows 2000 and am having trouble starting a service reliably. There is a VERY noticeable delay between issuing the command 'net start xxx' and the message 'the xxx service is starting'. This is causing my service to fail to start. My service regularly fails to even receive a 'Start' command ...

Create schedule task for windows in vb.net

Hello, could any one tell me how to create schedule task for windows in vb.net,and how to attach a dll with schedule task.and can we make differnet dll for different function.Could you give me a link or code. Actully i ahve one windows application which is performing 5 task at a time which are controlled by tick event on a ti...

How can I enable Net.Tcp Port Sharing Service programmatically?

I would lke to programmatically enable and start the Net.Tcp Port Sharing Service in C#. I can easily start the service using the ServiceController class. However, how do I enable the service, which is disabled by default? I found one recommendation online to set the following registry key to 2 as follows, which supposedly sets the serv...

Windows XPE service installation - how to set security at CreateService time?

I'm using CreateService to install a windows service on Windows XPE. I'd like to set things up so that only the Administrator can start/stop/pause/resume the service. Right now I'm using the following to install the service: schService = CreateService(schSCManager, ServiceName, ServiceDisplayName, // service name to displ...

Deploying a windows service in production - .NET

I have created a setup project for a Windows Service that was written in .NET. The Service depends on several elements in the App.config that is different in the dev environment from production environment (ex: path to a folder) I now have the MSI file that I can run in production to install the service. However, how do I change the val...

Is it possible to call a WCF Service hosted in a Windows Service within SharePoint?

I have a WCF Service hosted in a Windows Service in the same server where i have moss. The WCF works well calling it from a Console application, but if i call it from a page within Sharepoint, it throws a timed out exception. I added the following configuration to the webconfig: <system.serviceModel> <bindings> <wsHttpBind...

what is invalidate,update methods do in VC++

Hi all, i have small doubt regarding the window functions in c++. what exactly "invalidate()" function do? what message does it sends?when we need to call this? also what is "update()" function? is "invalidaterect()" works similar to "invalidate()" function?. Thanks ...

Windows service deploying problem

I've created a very simple Windows Service projects with this tutorial. I've build the project, created setup project to deploy it and configured it according to the tutorial information. I've build setup project and installed it. In the target dir I can find it's files so it installed correctly. The service doesn't do anything specific,...

Growing in the "Virtual bytes" performance counter

Hi, I am suffering from an "Out of memory" exception in my Windows Service after running it for few hours under huge workload. I used the following performance counters to detect memory leaks: # bytes in all heap Private bytes Virtual bytes The first 2 counters are going up and down regularly ... I cant see anything wrong in them. bu...

how to track if a given process throws exception, using windows service in C#

My process sometimes throws exception like dllnotfound after start. i have a monitor service responsible for maintaining the consistent state of the process. how can i keep track of state of my process using windows service. is there an open source implementation of windows service that maintains/track the state of process in windo...

Automatic Database Synchronisation

Hi all, I am using SQL Server 2008 and Visual Studio 2008 I have two databases.I need to run a query in a database and grab those results and update a table inside another database. This process would be done every one hour automatically. How can I do it? Data Transmission Services(DTS) used from SQL 2000? Is there something better t...

Debuger.Lanch(), Trace.Assert(fail) not working

Hi! (Note, this question has been marked answered in http://stackoverflow.com/questions/985581/debugging-sharepoint-timer-jobs but I'm still having trouble) I'm unable to debug my SharePoint timer job. Usually I can do this by setting one of these: Debugger.Lanch() Trace.Assert(false) But a dialog is not shown. I have a log4net Out...

Problem in installing Windows service developed in .Net

I have developed a windows service using C#,visual studio 2008. I have windows xp sp2 installed on my machine. When I try to install the service using installutil tool, after entering the username and password, I get following error. An exception occurred during the Install phase. System.ComponentModel.Win32Exception: The account name ...

Synchronous logon notification in Vista and Windows 7 for Windows services

Is there any way for a Windows service to get a logon notification as in the WinLogon notification package in Vista and Windows 7? I have a Windows service that needs to be notified about users logging in in a synchronous way. The user is not supposed to be logged on before the service has dealt with the logon notification. This worked ...

Fatal Execution Engine Error (7A097706)(80131506)

I have built a Windows Service using VS 2008 targeting Framework 3.5. When I install and attempt to run the service on my workstation, it crashes with a .NET Framework error with the following details: Event Type: Error Event Source: .NET Runtime Event Category: None Event ID: 1023 Date: 2/5/2010 Time: 11:40:48 AM User:...

Timers not running in Windows Service Application

Hello I had an application which reads some data from a web database and updates the local database - on a periodic basis. Say every 5 mins. This was in the form of an interactive windows application. But since this application has to run continuously, we decided to make a Windows Service Application. We were using timers in the appli...

How to stop a external executable in VB.NET?

I am developping a Windows Service in Visual Basic, witch will start an *.exe when starting. It's working pretty fine. Now how can I stop this *.exe while stopping this windows service? My code is as below: Public Class MyWinService Dim RetVal Protected Overrides Sub OnStart(ByVal args() As String) EventLog.WriteEntry("MyService Sta...

Windows Service will not execute code after install and launch

Hi there, I've built a Windows Service in C# using Visual Studio 2008. I've built it, navigated to the folder in which it's stored using the Visual Studio command prompt, and used the command: installutil MyWindowsService.exe. It installs just fine and I can see it in the services manager. However, when I go to run it, it will not execu...