Я попытался использовать библиотеку Guidance SharePoint и получил эту ошибку. У кого-то есть ответ или предложения?Реализация ведения журнала в SharePoint 2010 с использованием библиотеки SharePoint Guidance
Благодаря
Error is :
One or more error occurred while writing messages into the log.\r\nThe error while writing to the EventLog was:An exception has occurred.
ExceptionType: 'LoggingException'
ExceptionMessage: 'The Category 'Custom Error/DUET' was not found in the diagnostic categories collections.'
StackTrace: ' at Microsoft.Practices.SharePoint.Common.Logging.DiagnosticsService.GetCategory(String categoryName)
at Microsoft.Practices.SharePoint.Common.Logging.DiagnosticsService.LogTrace(String message, Int32 eventId, TraceSeverity severity, String categoryName)
at Microsoft.Practices.SharePoint.Common.Logging.TraceLogger.Trace(String message, Int32 eventId, TraceSeverity severity, String category)
at Microsoft.Practices.SharePoint.Common.Logging.SharePointLogger.WriteToDeveloperTrace(String message, Int32 eventId, TraceSeverity severity, String category)'
Source: 'Microsoft.Practices.SharePoint.Common'
TargetSite: 'Microsoft.SharePoint.Administration.SPDiagnosticsCategory GetCategory(System.String)'
\r\n Orginal logged message was: An error occurred while writing tot the Trace Log, trace message:kaka Error in Constant recovery
ExceptionType: 'Exception'
ExceptionMessage: 'testing sohail'
StackTrace: ''
Source: ''
TargetSite: ''
Ошибка прямо перед вашими глазами: '« Пользовательская ошибка/DUET »категории не найдена в коллекциях категорий диагностики.'. Перед тем, как использовать их, вам необходимо зарегистрировать свои категории ведения журнала. –
Как сказал moontear, вы зарегистрировали пользовательскую категорию? Если да, то как, где вы его зарегистрировали? Это, по-видимому, является причиной вашей проблемы - вероятно, вам не хватает функции, которая используется для регистрации пользовательских категорий. – SPArchaeologist