Hi.
I'm getting this message from the log, which we refer to pemissions access to the registry key used by SharePoint to create instances of SPDiagnosticService, which I use in a custom webpart
I checked the permissions of the user of ApplicationPool for the WebApplication and would seem to have permissions to access this key, even if it is not an Administrator user.
Any ideas?
Thisi is an extract of the Stack Trace:
Application error when access /svc/Pages/Page.aspx,Error=The source was not found, but some or all event logs could not be searched. To create the source, you need permission to read all event logs to make sure that the new source name is unique. Inaccessible logs: Security.
at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly, Boolean wantToCreate)
at System.Diagnostics.EventLog.SourceExists(String source, String machineName, Boolean wantToCreate)
at System.Diagnostics.EventLogInternal.VerifyAndCreateSource(String sourceName, String currentMachineName)
at System.Diagnostics.EventLogInternal.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category)
at Microsoft.SharePoint.Administration.SPDiagnosticsServiceBase.<>c__DisplayClass3.<WriteEvent>b__1()
at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
at Microsoft.SharePoint.Administration.SPDiagnosticsServiceBase.WriteEvent(UInt16 id, SPDiagnosticsCategory category, EventSeverity severity, String output, Object[] data)
......
Tnx










