IT Community - Software Programming, Web Development and Technical Support

Windows Service error

This is a discussion on Windows Service error within the C# Programming forums, part of the Software Development category; Hi, I have created a windows service and I have installed the service. But, When I start the service, the ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 12-05-2007, 11:33 PM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Default Windows Service error

Hi,

I have created a windows service and I have installed the service. But, When I start the service, the following error occurred.

Service cannot be started. System.ArgumentNullException: Value cannot be null.
at Service1.WriteToLog(String LogText, Boolean Flush)
at Service1.OnStart(String[] args)
at System.ServiceProcess.ServiceBase.ServiceQueuedMai nCallback(Object state)

Can anyone give me an idea to solve this error?
__________________
The OXYGEN
Delivers edgy, intelligent Technology to all...

Last edited by oxygen : 12-26-2007 at 02:59 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-27-2008, 09:48 PM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 131
Anandavinayagam is on a distinguished road
Default Re: Windows Service error

are you passing null values to WriteToLog method ...if u give the Full stack trace..we can find out the issue
__________________
The MOSS
Master of Solution Service
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
a error to run my project contain the MagickNet.dll (Windows server 2003 + ii6.0) risefei ASP and ASP.NET Programming 1 03-27-2008 05:48 PM
Windows Service Balasubramanian.S C# Programming 1 02-27-2008 09:47 PM
How to create a windows service program? Mramesh C# Programming 12 09-05-2007 08:11 AM
What is a Windows Service and how does its lifecycle differ from a “standard” EXE? vadivelanvaidyanathan ASP and ASP.NET Programming 1 07-16-2007 01:31 AM
simple windows service to generate automatic mails kingmaker C# Programming 0 07-16-2007 12:04 AM


All times are GMT -7. The time now is 01:36 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0