Click here to Skip to main content
15,911,531 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to create the Setup file in C# Console Application in .Net Pin
bruze14-May-08 6:38
bruze14-May-08 6:38 
GeneralRe: How to create the Setup file in C# Console Application in .Net Pin
parth.p14-May-08 7:23
parth.p14-May-08 7:23 
GeneralRe: How to create the Setup file in C# Console Application in .Net Pin
bruze14-May-08 20:31
bruze14-May-08 20:31 
QuestionGlobal dictionary & partial class scheme - error: cannot be accessed with an instance reference Pin
RNEELY14-May-08 4:09
RNEELY14-May-08 4:09 
AnswerRe: Global dictionary & partial class scheme - error: cannot be accessed with an instance reference Pin
carbon_golem14-May-08 4:24
carbon_golem14-May-08 4:24 
QuestionAny bug in my Code? Pin
ASysSolvers14-May-08 3:27
ASysSolvers14-May-08 3:27 
AnswerRe: Any bug in my Code? Pin
#realJSOP14-May-08 4:11
professional#realJSOP14-May-08 4:11 
Questionhow to use message box in windows service project. Pin
prasadbuddhika14-May-08 3:09
prasadbuddhika14-May-08 3:09 
AnswerRe: how to use message box in windows service project. Pin
Vikram A Punathambekar14-May-08 3:23
Vikram A Punathambekar14-May-08 3:23 
GeneralRe: how to use message box in windows service project. Pin
prasadbuddhika14-May-08 3:30
prasadbuddhika14-May-08 3:30 
AnswerRe: how to use message box in windows service project. [modified] Pin
#realJSOP14-May-08 3:50
professional#realJSOP14-May-08 3:50 
GeneralRe: how to use message box in windows service project. Pin
Dan Neely14-May-08 9:57
Dan Neely14-May-08 9:57 
AnswerRe: how to use message box in windows service project. Pin
Member 9614-May-08 8:47
Member 9614-May-08 8:47 
With a service it's a very bad idea to assume there is a user at all. Services are by definition assumed to have no user present, supervising them. Often services are running on a remote computer like a file or application server that may be in another country from the person responsible for it.

Keep this in mind at all times when writing a service, it should handle everything possible on it's own.

Have a look at the System.Diagnostics.EventLog component. That is a commonly expected and accepted way for a service to indicate an error of some kind. Avoid the temptation to put too much in that log, your users won't appreciate it. Stick to truly important messages.

Then users can view a problem in the Event log in windows if they have one or use many automated tools for working with the event log (like emailing them if an error occurs etc etc).


"The great pleasure in life is doing what people say you cannot do."

- Walter Bagehot

GeneralRe: how to use message box in windows service project. Pin
prasadbuddhika14-May-08 21:04
prasadbuddhika14-May-08 21:04 
GeneralRe: how to use message box in windows service project. Pin
Member 9615-May-08 5:28
Member 9615-May-08 5:28 
Questionthread safe in Dispose method Pin
George_George14-May-08 2:57
George_George14-May-08 2:57 
AnswerRe: thread safe in Dispose method Pin
Christian Graus14-May-08 3:00
protectorChristian Graus14-May-08 3:00 
GeneralRe: thread safe in Dispose method Pin
George_George14-May-08 15:16
George_George14-May-08 15:16 
GeneralRe: thread safe in Dispose method Pin
Peter Josefsson Sweden14-May-08 16:08
Peter Josefsson Sweden14-May-08 16:08 
GeneralRe: thread safe in Dispose method Pin
George_George14-May-08 16:20
George_George14-May-08 16:20 
GeneralRe: thread safe in Dispose method Pin
Peter Josefsson Sweden14-May-08 17:00
Peter Josefsson Sweden14-May-08 17:00 
GeneralRe: thread safe in Dispose method Pin
George_George14-May-08 17:26
George_George14-May-08 17:26 
GeneralRe: thread safe in Dispose method Pin
Peter Josefsson Sweden15-May-08 8:51
Peter Josefsson Sweden15-May-08 8:51 
GeneralRe: thread safe in Dispose method Pin
George_George16-May-08 20:42
George_George16-May-08 20:42 
GeneralRe: thread safe in Dispose method Pin
Peter Josefsson Sweden16-May-08 21:46
Peter Josefsson Sweden16-May-08 21:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.