سؤال

My ASP.NET APP cannot write into the Windows event log.

I get:

{System.UnauthorizedAccessException}
[System.UnauthorizedAccessException]: {System.UnauthorizedAccessException}
HelpLink: Nothing
InnerException: Nothing
Message: "The source was not found, but some or all event logs could not be 
searched.  Inaccessible logs: Security."

Idea?

هل كانت مفيدة؟

المحلول

You have to see what identity your application is running as. It won't necessarily have permissions to write into the event log.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top