Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Problem with SPDiagnosticsService

$
0
0

Hi, I am using SPDiagnosticsService in farm like this:

SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory("CustomLog1", TraceSeverity.Unexpected, EventSeverity.Error), TraceSeverity.Unexpected,"test", "test1");

Unfortunatelly this line throws error "Object reference not set to an instance of an object".

I am using this in development (standalone) solution and it works fine, but when I passed solution into farm I've got this error as above.

I also checked and SPTraceV4 service is running and it's running under Local Service on each front end.

Thanx for any help.


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>