Archived Months
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
October 2007
all groups > dotnet myservices > april 2005

EVENTLOG.WRITEENTRY THROWS AN EXCEPTION IF THE EVENT LOG IS FULL
Posted by Andy Fish at 4/28/2005 12:00:00 AM
Sorry to shout, but I'll bet this is a common mistake when programming windows services (or anything that uses the event log). I didn't really think of it until our demo system wouldn't start up just before an important demo. What happened was this: 1. the service started OK 2. it tried...more >>


what is myservices
Posted by Andy Fish at 4/26/2005 12:00:00 AM
Hi, Sorry to appear dumb, but can anyone explain (or point me to a page that explains) what "myservices" actually is? most of the posts here just seem to be about windows services. TIA Andy ...more >>

Service and EventLog
Posted by Albert Krüger at 4/25/2005 12:00:00 AM
Hello, I have a problem at a service with the log property of an EventLog. For some weeks I write a little service which works fine. This service write to his own event log entry. In the constructor of the service I have write MyEventLog.Source = "MyService" MyEventLog.Log = "MyLog" Now ...more >>

Service and NotifyIcon
Posted by Albert Krüger at 4/25/2005 12:00:00 AM
Hello, I have a service which starts an application with a NotifyIcon. When I start the NotifyIcon from the service, the application starts but there is no notifyicon. When I start the appication not from the service, the notifyicon is shown. Where is the problem? Thanks Albert Krüger ...more >>

service installed...but cannot see it in SCM
Posted by rk325 at 4/21/2005 7:51:12 AM
I just created a small windows ervice app. in VB.NET. I installed it using InstallUtil.exe. As far as I can tell, the installation went fine. But when I open the Server Control Manager, I do not see my service listed. ANy ideas why? Here is the results of installing my service: C:\CopyWebDa...more >>

why service reference other project can not be debuged.
Posted by alien at 4/20/2005 12:00:00 AM
Hi all, i create a sevice programe using vb.net,all goes well but when reference class from other project(dll), it can not be debuged, even can not create text file used as log. Does anyone know the reason?Any help will be appreciated. ...more >>

controlling windows service start and stop (shutdown) timeout
Posted by Jan Waga at 4/19/2005 2:20:48 PM
Hello, Is there some way to control SCM timeout while starting or stopping a C# windows service? I know I can work on a different thread and quickly return from OnStart(), but I'd like my service to shutdown gracefully, and it takes a long time to save all data while exiting. Thanks for any...more >>

windows service - 2 simple (I hope) questions
Posted by Jan Waga at 4/17/2005 12:00:00 AM
Hello, I've written and installed windows service in C#. I have two questions: 1) File.Open("lock", FileMode.OpenOrCreate, FileAccess.Read, FileShare.None) does not create the file even if it doesn't exist. Also: Directory.Exists(ConfigDirectoryName) returns always true (even if the d...more >>



xmlSerializer & xmlAttrbuteOverrides of arrays
Posted by Zion Zadik at 4/15/2005 12:00:00 AM
Dear all, I have a set of c# data classes which i need to fill their data from xml files. serialization looks to be the best way to accomplish this task. Since the data classes are compiled and i don't have control on the xml structure, I tried using the xmlAttributeOverrides class, to instruc...more >>

Desktop application interact with server
Posted by Gene Vangampelaere at 4/13/2005 8:41:28 AM
Hi, I was wondering if it is possible that a desktop application can interact with my windows service. for example : In my desktop application I want to do this : MyService.DoACustomAction(parameter1,parameter2) How can I do this ? (My service is an update service, every 30min It che...more >>

From Application project to Service project
Posted by husamal_ahmadi NO[at]SPAM yahoo.com at 4/9/2005 9:30:37 PM
Hi EveryBody: This is the code for how can I let the internet ecplorer navigate in the same window Code: Decleration: <DllImport("shell32", CharSet:=CharSet.Auto, SetLastError:=True)> _ Public Shared Function ShellExecute(ByVal hwnd As IntPtr, ByVal lpOperation As String, ByVal lpFile As...more >>

Dectecting the Presence of a Windows Service App
Posted by Bob at 4/6/2005 8:26:46 AM
>From within a Windows Form based App, I wish to detected whether or not a particular Windows Service App is running. What is the best way to do this? Thanks, Bob ...more >>


DevelopmentNow Blog