代码之家  ›  专栏  ›  技术社区  ›  Magnus Johansson

Application Insights e_AccessDenied异常,在哪里查找?

  •  2
  • Magnus Johansson  · 技术社区  · 8 年前

    我已经开始为此(来自hresult的例外情况:0x80070005(e_accessdenied))填充我对发布到Azure应用程序服务的ASP.NET MVC应用程序的应用程序洞察
    因为在堆栈跟踪中没有对我的代码的跟踪,所以我不知道它发生在哪里。

    在此之前发生的唯一事件是这个“stopprofiler触发的”跟踪事件(它不是我的) 有人知道吗?

    异常属性

    • 活动时间:2018年7月15日下午2:06:30
    • 消息:访问被拒绝。(来自hresult的异常:0x80070005(e_accessdenied))。
    • 异常类型:System.UnauthorizedAccessException
    • 失败的方法:DiagnosticShub.StandardCollector.Host.Interop.IstandardCollector Service.CreateSession

    自定义数据

    • 代理版本2.4.60615.1
    • 议程E578E3EF-238B-496D-B4F1-928321A8C405
    • 机器名称RD00155D523178
    • 说明StartProfiler失败。
    • 运行模式心宿二
    • 源应用程序洞察力配置程序

    调用堆栈

    System.UnauthorizedAccessException: 在diagnosticshub.standardcollector.host.interop.istandardcollectorservice.createSession(applicationSightsProfiler,version=2.4.60615.1,culture=neutral,publicKeyToken=b03f5f7f11d50a3a) 在Microsoft.ServiceProfiler.Collectors.StandardCollectorService.CreateSecureSessionWithAgent(ApplicationSightsProfiler,版本=2.4.60615.1,区域性=中性,PublicKeyToken=b03f5f7f11d50a3a) 在Microsoft.ServiceProfiler.Collectors.StandardCollectorBase.InitializeCore上(applicationSightsProfiler,版本=2.4.60615.1,区域性=中性,publicKeyToken=b03f5f7f11d50a3a) 在microsoft.serviceprofiler.collectors.detailedtracecollector.startmonitor上(applicationSightsProfiler,版本=2.4.60615.1,区域性=中性,publicKeyToken=b03f5f7f11d50a3a) at system.threading.tasks.task`1.innerinvoke(mscorlib,version=4.0.0.0,culture=neutral,publickeytoken=b7a5c561934e089) 在system.threading.tasks.task.execute(mscorlib,version=4.0.0.0,culture=neutral,publickeytoken=b7a5c561934e089) 在system.runtime.exceptionservices.exceptionDispatchInfo.throw(mscorlib,版本=4.0.0.0,区域性=中性,publicKeyToken=b7a5c561934e089) 在system.runtime.compilerservices.taskwaiter.handlenonsuccessanddebuggernotification(mscorlib,version=4.0.0.0,culture=neutral,publicKeytoken=b7a5c561934e089) 位于microsoft.serviceprofiler.agent.orchestration.orchestrator+d ou 15.movenext(microsoft.serviceprofiler.agent.orchestration,version=2.4.60615.1,culture=neutral,publickeytoken=b03f5f7f11d50a3a)

    因为在堆栈跟踪中没有对我的代码的跟踪,所以我不知道它发生在哪里。

    在此之前发生的唯一事件是这个“stopprofiler触发的”跟踪事件(它不是我的) enter image description here 有人知道吗?

    异常属性

    • 活动时间:2018年7月15日下午2:06:30
    • 消息:访问被拒绝。(来自hresult的异常:0x80070005(e_accessdenied))
    • 异常类型:System.UnauthorizedAccessException
    • 失败的方法:DiagnosticShub.StandardCollector.Host.Interop.IstandardCollector Service.CreateSession

    自定义数据

    • 代理版本2.4.60615.1
    • 议程E578E3EF-238B-496D-B4F1-928321A8C405
    • 机器名称RD00155D523178
    • 说明StartProfiler失败。
    • 运行模式心宿二
    • 源应用程序洞察力配置程序

    调用堆栈

    System.UnauthorizedAccessException: 在diagnosticshub.standardcollector.host.interop.istandardcollectorservice.createSession(applicationSightsProfiler,version=2.4.60615.1,culture=neutral,publicKeyToken=b03f5f7f11d50a3a) 在Microsoft.ServiceProfiler.Collectors.StandardCollectorService.CreateSecureSessionWithAgent(ApplicationSightsProfiler,版本=2.4.60615.1,区域性=中性,PublicKeyToken=b03f5f7f11d50a3a) 在Microsoft.ServiceProfiler.Collectors.StandardCollectorBase.InitializeCore上(applicationSightsProfiler,版本=2.4.60615.1,区域性=中性,publicKeyToken=b03f5f7f11d50a3a) 在microsoft.serviceprofiler.collectors.detailedtracecollector.startmonitor上(applicationSightsProfiler,版本=2.4.60615.1,区域性=中性,publicKeyToken=b03f5f7f11d50a3a) at system.threading.tasks.task`1.innerinvoke(mscorlib,version=4.0.0.0,culture=neutral,publickeytoken=b7a5c561934e089) 在system.threading.tasks.task.execute(mscorlib,version=4.0.0.0,culture=neutral,publickeytoken=b7a5c561934e089) 在system.runtime.exceptionservices.exceptionDispatchInfo.throw(mscorlib,版本=4.0.0.0,区域性=中性,publicKeyToken=b7a5c561934e089) 在system.runtime.compilerservices.taskwaiter.handlenonsuccessanddebuggernotification(mscorlib,version=4.0.0.0,culture=neutral,publicKeytoken=b7a5c561934e089) 位于microsoft.serviceprofiler.agent.orchestration.orchestrator+d ou 15.movenext(microsoft.serviceprofiler.agent.orchestration,version=2.4.60615.1,culture=neutral,publickeytoken=b03f5f7f11d50a3a)

    1 回复  |  直到 8 年前
        1
  •  3
  •   alex.aloni    8 年前

    此问题已在最新版本中修复。尝试升级到2.6.5。

    您可以从运行更新 WebApp Extensions Blade 或来自 Application Insights Enablement Blade