我已经开始获取此信息(HRESULT 异常:0x80070005 (E_ACCESSDENIED)),为发布到 Azure 应用服务的 ASP.NET MVC 应用程序填充我的应用程序见解
由于堆栈跟踪中没有对我的代码的跟踪,因此我无法弄清楚它发生在哪里。
之前发生的唯一事件是“StopProfiler 已触发”跟踪事件(不是我的) 有人有什么想法吗?
异常属性
- Event time: 7/15/2018, 2:06:30 PM
- Message: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
- Exception type: System.UnauthorizedAccessException
- Failed method: DiagnosticsHub.StandardCollector.Host.Interop.IStandardCollectorService.CreateSession
自定义数据
- AgentVersion 2.4.60615.1
- AgentSession e578e3ef-238b-496d-b4f1-928321a8c405
- MachineName rd00155d523178
- Description StartProfiler failed.
- RunningMode Antares
- Source ApplicationInsightsProfiler
调用堆栈
System.UnauthorizedAccessException: at DiagnosticsHub.StandardCollector.Host.Interop.IStandardCollectorService.CreateSession (ApplicationInsightsProfiler, Version=2.4.60615.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a) at Microsoft.ServiceProfiler.Collectors.StandardCollectorService.CreateSecureSessionWithAgent (ApplicationInsightsProfiler, Version=2.4.60615.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a) at Microsoft.ServiceProfiler.Collectors.StandardCollectorBase.InitializeCore (ApplicationInsightsProfiler, Version=2.4.60615.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a) at Microsoft.ServiceProfiler.Collectors.DetailedTraceCollector.StartMonitor (ApplicationInsightsProfiler, Version=2.4.60615.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a) at System.Threading.Tasks.Task`1.InnerInvoke (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Threading.Tasks.Task.Execute (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at Microsoft.ServiceProfiler.Agent.Orchestration.Orchestrator+d__15.MoveNext (Microsoft.ServiceProfiler.Agent.Orchestration, Version=2.4.60615.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)
最佳答案
此问题已在最新版本中修复。尝试升级到2.6.5。
您可以从 WebApp Extensions Blade 运行更新 或来自Application Insights Enablement Blade
关于azure-application-insights - Application Insights E_ACCESSDENIED 异常,去哪里查看?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51348637/