Click here to Skip to main content
15,922,650 members
Home / Discussions / C#
   

C#

 
AnswerRe: File Byte[] Conversion to String for MD5 Hash Generation Pin
Luc Pattyn19-Jun-09 4:02
sitebuilderLuc Pattyn19-Jun-09 4:02 
Questionconnection string in a file Pin
Adekolurejo19-Jun-09 3:38
Adekolurejo19-Jun-09 3:38 
AnswerRe: connection string in a file Pin
SeMartens19-Jun-09 3:44
SeMartens19-Jun-09 3:44 
AnswerRe: connection string in a file Pin
stancrm19-Jun-09 3:47
stancrm19-Jun-09 3:47 
GeneralRe: connection string in a file Pin
harold aptroot19-Jun-09 4:00
harold aptroot19-Jun-09 4:00 
GeneralRe: connection string in a file Pin
Adekolurejo19-Jun-09 4:30
Adekolurejo19-Jun-09 4:30 
GeneralRe: connection string in a file Pin
harold aptroot19-Jun-09 4:34
harold aptroot19-Jun-09 4:34 
AnswerRe: connection string in a file Pin
meeram39519-Jun-09 3:48
meeram39519-Jun-09 3:48 
AnswerRe: connection string in a file [modified] Pin
kstls20-Jun-09 11:03
kstls20-Jun-09 11:03 
QuestionUrgent Mail Sending Problem Pin
dev sheoran19-Jun-09 2:09
dev sheoran19-Jun-09 2:09 
AnswerRe: Urgent Mail Sending Problem Pin
Not Active19-Jun-09 2:13
mentorNot Active19-Jun-09 2:13 
GeneralRe: Urgent Mail Sending Problem Pin
dev sheoran19-Jun-09 2:30
dev sheoran19-Jun-09 2:30 
GeneralRe: Urgent Mail Sending Problem Pin
Nagy Vilmos19-Jun-09 3:22
professionalNagy Vilmos19-Jun-09 3:22 
JokeRe: Urgent Mail Sending Problem [modified] Pin
musefan19-Jun-09 3:24
musefan19-Jun-09 3:24 
GeneralRe: Urgent Mail Sending Problem Pin
EliottA19-Jun-09 3:38
EliottA19-Jun-09 3:38 
GeneralRe: Urgent Mail Sending Problem Pin
musefan19-Jun-09 3:40
musefan19-Jun-09 3:40 
AnswerRe: Urgent Mail Sending Problem Pin
musefan19-Jun-09 2:39
musefan19-Jun-09 2:39 
QuestionHow to transfer data without using dataset Pin
Ersan Ercek19-Jun-09 1:53
Ersan Ercek19-Jun-09 1:53 
AnswerRe: How to transfer data without using dataset Pin
Not Active19-Jun-09 2:10
mentorNot Active19-Jun-09 2:10 
GeneralRe: How to transfer data without using dataset Pin
SilimSayo19-Jun-09 2:16
SilimSayo19-Jun-09 2:16 
GeneralRe: How to transfer data without using dataset Pin
Not Active19-Jun-09 2:35
mentorNot Active19-Jun-09 2:35 
GeneralRe: How to transfer data without using dataset Pin
Ersan Ercek19-Jun-09 4:31
Ersan Ercek19-Jun-09 4:31 
GeneralRe: How to transfer data without using dataset Pin
Not Active19-Jun-09 5:06
mentorNot Active19-Jun-09 5:06 
GeneralRe: How to transfer data without using dataset Pin
Ersan Ercek24-Jun-09 5:37
Ersan Ercek24-Jun-09 5:37 
QuestionEventLog logging with log4net Pin
Jammer19-Jun-09 1:08
Jammer19-Jun-09 1:08 
Hi All,

I've been poking around Google / Apache.org trying to get to the bottom of this with no luck. There isn't a lot of info anywhere on configuring log4net using pure C# so I thought I'd try here now.

I can log to the "Application" log with no problems. I can also create "MyLog" event log without problems as well, however, writing to "MyLog" fails to actually write an event log entry. The code I'm using to configure an EventLogAppener is:

public static void ConfigureEventLogAppender(string appName, string logName)
{
PatternLayout layout = GetDefaultLayout();
_eventLogAppender = new EventLogAppender();
_eventLogAppender.ApplicationName = appName;
_eventLogAppender.Layout = layout;
_eventLogAppender.LogName = logName;
_eventLogAppender.Threshold = Level.All;
_eventLogAppender.ActivateOptions();

BasicConfigurator.Configure(_eventLogAppender);
}

Has anyone managed to get this working?

Cheers,


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.