Click here to Skip to main content
15,899,825 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I pass an enumeration type? Pin
JoeRip20-Nov-07 15:42
JoeRip20-Nov-07 15:42 
GeneralRe: How can I pass an enumeration type? Pin
Luc Pattyn20-Nov-07 17:07
sitebuilderLuc Pattyn20-Nov-07 17:07 
QuestionLinking 2d shapes together Pin
Colm_L20-Nov-07 12:43
Colm_L20-Nov-07 12:43 
AnswerRe: Linking 2d shapes together Pin
Skippums20-Nov-07 13:09
Skippums20-Nov-07 13:09 
GeneralRe: Linking 2d shapes together Pin
Colm_L20-Nov-07 13:38
Colm_L20-Nov-07 13:38 
GeneralRe: Linking 2d shapes together Pin
Skippums20-Nov-07 13:50
Skippums20-Nov-07 13:50 
QuestionProblem with System.Configuration.GetSection Pin
KenD20-Nov-07 10:53
KenD20-Nov-07 10:53 
QuestionLog4net problem [modified] Pin
allanb2320-Nov-07 10:49
allanb2320-Nov-07 10:49 
I have created a new eventlog on my windows box and also on a virtual machine that runs on my box. I am trying to log events into the event log using log4net and the eventlogappender. It works on the virtual machine, but not my box. I have full permissions on the event log. I also have a java application that is using log4j and can log events to the event log. I just cannot log the events when running my c# application. Any ideas would be appreciated.

A portion of my logging file that defines the appender is listed below

<appender name="AuditEventLogAppender" type="log4net.Appender.EventLogAppender" >
<logName value="MyEventLog" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5levelÀ%logger [%property{NDC}] - %message%newline" />
</layout>
</appender>

<logger name="com.mycompany.Audit" additivity="false">
<level value="ERROR" />
<appender-ref ref=" AuditEventLogAppender" />
<appender-ref ref=" AuditRollingFileAppender" />
<!-- defined and works in file above, did not list it-->
</logger>

thanks

I was able to turn on log4net debug and this exception was thrown:

[SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.]

I do not have permission for all the event logs, which will be the case when the application is deployed. I thought by setting the logname this would avoid this exception. Is there a way around this?







-- modified at 18:09 Tuesday 20th November, 2007
AnswerRe: Log4net problem Pin
Skippums20-Nov-07 10:54
Skippums20-Nov-07 10:54 
Question.NET Windows Service + COM component - Freezing on ((System.ComponentModel.ISupportInitialize)(this.axMapPro1)).EndInit(); Pin
gixxersix8520-Nov-07 9:15
gixxersix8520-Nov-07 9:15 
QuestionC# How to create a Menu tab from a XML file Pin
ddubey20-Nov-07 8:05
ddubey20-Nov-07 8:05 
AnswerRe: C# How to create a Menu tab from a XML file Pin
Not Active20-Nov-07 11:40
mentorNot Active20-Nov-07 11:40 
GeneralRe: C# How to create a Menu tab from a XML file Pin
ddubey20-Nov-07 11:48
ddubey20-Nov-07 11:48 
GeneralRe: C# How to create a Menu tab from a XML file Pin
ddubey20-Nov-07 13:31
ddubey20-Nov-07 13:31 
GeneralRe: C# How to create a Menu tab from a XML file Pin
Not Active20-Nov-07 14:31
mentorNot Active20-Nov-07 14:31 
GeneralRe: C# How to create a Menu tab from a XML file Pin
ddubey20-Nov-07 14:39
ddubey20-Nov-07 14:39 
QuestionDistributed Processing Pin
DarrollWalsh20-Nov-07 7:40
DarrollWalsh20-Nov-07 7:40 
AnswerRe: Distributed Processing Pin
Skippums20-Nov-07 8:04
Skippums20-Nov-07 8:04 
QuestionRe: Distributed Processing [modified] Pin
DarrollWalsh20-Nov-07 8:16
DarrollWalsh20-Nov-07 8:16 
AnswerRe: Distributed Processing Pin
Skippums20-Nov-07 9:18
Skippums20-Nov-07 9:18 
Questionresizeing other windows in C# Pin
supr_k920-Nov-07 7:28
supr_k920-Nov-07 7:28 
AnswerRe: resizeing other windows in C# Pin
Judah Gabriel Himango20-Nov-07 7:47
sponsorJudah Gabriel Himango20-Nov-07 7:47 
GeneralRe: resizeing other windows in C# Pin
supr_k920-Nov-07 11:25
supr_k920-Nov-07 11:25 
GeneralRe: resizeing other windows in C# Pin
Anthony Mushrow20-Nov-07 12:10
professionalAnthony Mushrow20-Nov-07 12:10 
AnswerRe: resizeing other windows in C# Pin
Anthony Mushrow20-Nov-07 12:01
professionalAnthony Mushrow20-Nov-07 12:01 

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.