service

Way to Stop a Windows Service when CanStop is set to False (C#)

Ok so part two of I have no will power experiment is: Summary Question - Is there a way to set the CanStop property on a windows service dynamically? Whole Spiel - I have a service that is currently checking and killing processes (IE Games) I have told it to if it's day I'm not allowed. Great. I set the CanStop to false so that I can...

Framework to host web services on a basic hosted web server

Can anyone recommend a framework or basic technology to use to host a web service on a basic hosted web server? I have data in a mySQL database that will be accessed by the web service. ...

Accessing network shares from a service

I am creating a service that needs to run on Windows 2000, XP, 2003, 2008 & Vista. The service needs to access a network share as part of its processing. For XP and beyond the service can be running as the Network Service account but what's the equivalent in Windows 2000? ...

Adding to a Coldfusion classpath running on an instanced JRun server

I'm having some trouble getting my Coldfusion server classpath to recognize my custom java jars. The classpath is not reading my jvm.config file correctly (I assume out of my JRun server which is where the CF instance is running out of, it's a production server with multiple sites attached). I have been banging my head against the wall...

Maintiaining SQL Transactions over web service calls in .Net

How do I perform a database transaction where I create a new record then make a call to a web service using the new record ID returned from the database which will also manipulate the same database? I could obviously update all tables directly from the same SQLConnection object but the logic within the web service call is subject to chan...

dimension wizard error

Hi I’m working on the project server 2007 analysis service , and when i wanted to do some customization including adding dimension to a cube i faced the following problem : simply when i start the cerate new dimension wizard and after selecting dimension type the following error appears and the wizard crash TITLE: Microsoft SQL Serv...

How to capture console output from a service C#?

We have a C# service that is deployed to a remote customer system. The application writes a substantial amount of "diagnostic" information to the console (i.e. Console.WriteLine()). The service isn't "doing what it should." How can we capture the console output from the service in another application? A WinForm version the applicatio...

Using SHFileOperation within a Windows service

It's possible, but is it appropriate to use SHFileOperation within a Windows service? All those SHxxx API functions in shell32.dll seem to have been written with user level programs in mind. Can I be certain SHFileOperation won't display GUI ever? ...

Alert Popups from service in Python

I have been using win32api.MessageBox to do alerts, and this works for apps running from the interactive prompt and normally executed code, however when I built a Python service when a MessageBox is triggered I can hear the 'beep' but the box does not display. Is it possible to display alerts from services? ...

Service and/or Commodity

Do we create services when we write programs, or are they commodities? Are we like window-washers in that our programs(actions) provide some services to the users? OR: are we like carpenters in that our programs(products) are sold and used by their new owners? Or should this be seen in different aspects: The act of programming being a ...

C#/.NET: Detect whether program is being run as a service or a console application.

I have a C#/.NET program that can run both as a console application and as a service. Currently I give it a command-line option to start as a console application, but I would like to avoid that. Is it possible to programmatically detect whether my program is being started as a service? If it was pure Win32, I could try starting as a s...

How to automatically start your service after install?

How do you automatically start a service after running an install from a Visual Studio Setup Project? I just figured this one out and thought I would share the answer for the general good. Answer to follow. I am open to other and better ways of doing this. ...

Locating installer paths in c#

In VS2008 I have writen a c# service, an installer and created a setup package to install it. The service needs to load an xml file to operate. Where is the best place to put this file in the various filesystem folders offered by the VS setup project, and how do I then refer to these paths from my code? Thanks [I should point out the t...

windows service startup timeout

Hi, Is there a way to set a different value for service startup timeout per service? I can change it using the ServicesPipeTimeout registry key, but it's per machine (http://support.microsoft.com/kb/824344). At the moment the only thing I thought about was to do all the time-consuming startup actions in a different thread. Thanks. ...

Profiling WebMethods services?

What techniques are available to profile services running in WebMethods Integration Server? That is, to obtain data which would indicate which parts would benefit most from optimisation. ...

Error 1783 - instsrv.exe REMOVE from Win2k3

My applications installer offers the user the ability to run the application as a service through use of the srvany.exe application. To remove the application on uninstall, I've been using the application "instsrv.exe" with the following command: instsrv "myservice" REMOVE On Windows Server 2003, I encounter an error 1783. Any id...

Service linq to sql

Can anyone suggest good article on services over linq to sql ? ...

Authenticating a Web Service

We are deploying our ASP.NET 3.5 app to a production server for beta testing. Each page is secured using SSL. On our homepage (default.aspx) we have web services which populate flash objects. I am getting an error: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from ...

Hosting the WCF Service in windows service

Hi All How to host the WCF service in windows service? Thanks Sekar ...

is something similar to ServiceLoader in Java 1.5?

Hello i want to discover at runtime classes in the classpath which implements a defined interface. ServiceLoader suits well (i think, i haven't used it), but i need do it in Java 1.5. any ideas? ...