Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Wed, 25 May 2005 09:49:09 -0700,    group: microsoft.public.dotnet.myservices        back       


Problems Starting my first Windows Service   
Hello,

I have created and installed a Windows service on my local computer.  (I am 
running Windows XP SP2.)  This service is set to run under the local system 
account.  However, when I attempt to start the service I get a 
"System.ArguementException" error message.  Because the service didn't start, 
I am unable to attach the debugger to the process.  I don't know what is 
wromg with the project because it compiles fine and I am not able to step 
through the code.

Has anyone else had this problem?

Thanks in advance for your help,

Paul
date: Wed, 25 May 2005 09:49:09 -0700   author:   Paul Daly (MCP)

Re: Problems Starting my first Windows Service   
Paul Daly (MCP) wrote:
> Hello,
> 
> I have created and installed a Windows service on my local computer.  (I am 
> running Windows XP SP2.)  This service is set to run under the local system 
> account.  However, when I attempt to start the service I get a 
> "System.ArguementException" error message.  Because the service didn't start, 
> I am unable to attach the debugger to the process.  I don't know what is 
> wromg with the project because it compiles fine and I am not able to step 
> through the code.
> 
> Has anyone else had this problem?
> 
> Thanks in advance for your help,
> 
> Paul

Generally some library or system call you make in your startup code 
throws the exception you see. Carefully protect all service code with 
try-catch, and provide some type of logging for where the error occurs. 
You want this even after you get it initially debugged.

HTH - Lee
date: Tue, 31 May 2005 07:11:35 -0700   author:   Lee Gillie

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us