Thursday, October 2, 2008

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

My portal tries to write an event log but got the error as the subject.

Reason: to enable event log for my portal, I need to register source in the regedit.
For example, to create a source for partner portal on Vista, import the reg file containing below content:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\PartnerPortal]
"EventMessageFile"="C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\EventLogMessages.dll"

No comments: