DiigIT | IT Community
No Profile Image
Welcome Guest
New User? Register | Login

Any help in this exception please

By: rekha singh | 18 Jan 2010 5:12 pm

Once I run the comming code this word appear on the console "the  event file log is full" how can I solve that please

the code:

static void Main(string[ ] args)
{
string sSource;
string sLog;
string sEvent;

try
{
sSource = "dotNET Sample App";
sLog = "Application" ;
sEvent = "Sample Event";
if (!EventLog.SourceEx ists(sSource) )
EventLog.CreateEven tSource(sSource, sLog);
EventLog.WriteEntry (sSource, sEvent);
EventLog.WriteEntry (sSource, sEvent,
EventLogEntryType. Warning, 234);
}
catch (Exception e)
{
Console.WriteLine( e.Message) ;
}

}

 

Comments

No Comments Posted for this Article.

Leave a comment

Enter the text in the image
img
Can't read?
Type the characters you see in the picture below.


Close Move