I'm trying to trace network calls in UWP. I am trying to use HttpDiagnosticProvider. Here's my code.
var processDiagnosticsInfo = ProcessDiagnosticInfo.GetForCurrentProcess();
var httpDiagnosticProvider = HttpDiagnosticProvider.CreateFromProcessDiagnosticInfo(processDiagnosticsInfo);
httpDiagnosticProvider.ResponseReceived += OnResponseReceived;
httpDiagnosticProvider.Start();
I'm getting UnauthorizedAccessException in Start() method. What's wrong with my code or do i need to get user grant or something to make it work?