>>I am sure it is simple if everything works. And I have been doing this work long enough to know that things don't always work right. And actually I decided to go back to creating token/sample files. I am concerned that if I write something to the log and the customer finds any problem on the server (at a later date), they will point a finger at me (vendor).
>
>
>using System;
>using System.Diagnostics;
>
>
>string sSource = "My App";
>string sLog ="Application";
>string sEvent = ex.Message; // put your text to be read here.
>
>// now write this to the log
>//EventLog.CreateEventSource(sSource,sLog); If you were creating your own
>EventLog.WriteEntry(sSource,sEvent);
>EventLog.WriteEntry(sSource, sEvent, EventLogEntryType.Warning, 234);
>
>
>HTH
Thank you. I will try your suggestion. It does differ from mine; so maybe that little difference will make a big difference.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham