Azure 未从Web角色中托管的Sitefinity CMS收集应用程序洞察数据

Azure 未从Web角色中托管的Sitefinity CMS收集应用程序洞察数据,azure,azure-web-roles,sitefinity,azure-application-insights,Azure,Azure Web Roles,Sitefinity,Azure Application Insights,基于sitefinity CMS的.net web应用程序作为web角色托管在azure中。该站点本身运行良好。 现在,我已在应用程序中启用应用程序洞察,但未收集任何应用程序洞察数据 这是基于Sitefinity 7.3版本的。app insights程序集是使用“安装包Microsoft.ApplicationInsights.Web-Pre”通过nuget安装的,并且已成功安装。相应的模块添加到web.config中,ApplicationInsights.config文件也添加到解决方案中

基于sitefinity CMS的.net web应用程序作为web角色托管在azure中。该站点本身运行良好。 现在,我已在应用程序中启用应用程序洞察,但未收集任何应用程序洞察数据

这是基于Sitefinity 7.3版本的。app insights程序集是使用“安装包Microsoft.ApplicationInsights.Web-Pre”通过nuget安装的,并且已成功安装。相应的模块添加到web.config中,ApplicationInsights.config文件也添加到解决方案中

我在emulator中进行了调试,发现“ApplicationInsightsWebTracking”模块也可以正常加载

作为试用,我为一个普通的asp.net mvc应用程序启用了AppInsights,并发现它运行良好

任何解决方案都将不胜感激

--编辑-- 我在applicationInsights.config中添加了具有新门户的值的instrumentation键元素,因为AppInsights的nuget安装不会自动添加它

--更多编辑---

1) 我使用了正确的仪表键

2) 在输出窗口的本地azure emulator中运行应用程序时,我看到此错误

“System.IO.FileNotFoundException”类型的首次意外异常 在Microsoft.ApplicationInsights.dll WebRequestTrackingModule中发生 初始化失败,出现异常: System.IO.FileNotFoundException:无法加载文件或程序集 'System.Threading.Tasks,版本=2.6.8.0,区域性=中性, PublicKeyToken=b03f5f7f11d50a3a'或其依赖项之一。这个 系统找不到指定的文件。文件名: 'System.Threading.Tasks,版本=2.6.8.0,区域性=中性, PublicKeyToken=b03f5f7f11d50a3a'-->System.IO.FileNotFoundException: 无法加载文件或程序集的System.Threading.Tasks, 版本=1.5.11.0,区域性=中性,PublicKeyToken=b03f5f7f11d50a3a'或 它的一个依赖项。系统找不到指定的文件。 文件名:“System.Threading.Tasks,版本=1.5.11.0,区域性=neutral, PublicKeyToken=b03f5f7f11d50a3a'

===预绑定状态信息===日志:DisplayName=System.Threading.Tasks,版本=1.5.11.0,区域性=neutral, PublicKeyToken=b03f5f7f11d50a3a(完全指定)日志:Appbase= file:///D:/src/xyz/Azure/Sitefinity/xyz.Sitefinity/Web/Sitefinity/ 日志:初始私有路径= D:\src\xyz\Azure\Sitefinity\xyz.Property.Sitefinity\Web\Sitefinity\bin 调用程序集:Microsoft.Threading.Tasks,版本=1.0.12.0, 区域性=中性,PublicKeyToken=b03f5f7f11d50a3a。 ==日志:此绑定在默认加载上下文中启动。日志:使用应用程序配置文件: D:\src\xyz\Azure\Sitefinity\xyz.Sitefinity\Web\Sitefinity\Web.config 日志:使用主机配置文件:C:\Program Files\IIS Express\config\templates\PersonalWebServer\aspnet.config日志:使用 来自的计算机配置文件 C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config。 日志:在应用程序配置文件1.5.11.0中找到重定向 已重定向到2.6.8.0。日志:发布策略引用: System.Threading.Tasks,版本=2.6.8.0,区域性=中性, PublicKeyToken=b03f5f7f11d50a3a日志:以前见过相同的绑定, 并且失败,hr=0x80070002

在 Microsoft.ApplicationInsights.Extensibility.Implementation.TaskTimer.Start(Func
1
(过去的)在
Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.DiagnosticsSeventThrottlingScheduler.InternalCreateAndStartTimer(Int32
间隔(毫秒,动作)在
Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.DiagnosticSeventThrottlingsScheduler.ScheduleTorUneveryTimeIntervalinMillingSeconds(Int32
时间间隔,动作执行)在
Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.DiagnosticsSeventThrottlingManager
1..ctor(T snapshotContainer、IDiagnosticSeventThrottlingScheduler计划程序、, UInt32节流再循环间隔(分钟) Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.DiagnosticsTelemetryModule.Initialize(遥测配置 配置)在 Microsoft.ApplicationInsights.Extensibility.Implementation.TelemetryConfigurationFactory.InitializeComponent(对象 组件,遥测配置)位于 Microsoft.ApplicationInsights.Extensibility.Implementation.TelemetryConfigurationFactory.InitializeComponents(IEnumerable 组件、遥测配置)位于 Microsoft.ApplicationInsights.Extensibility.Implementation.TelemetryConfigurationFactory.InitializeComponents(TelemetryConfiguration 配置)在 Microsoft.ApplicationInsights.Extensibility.Implementation.TelemetryConfigurationFactory.Initialize(遥测配置 配置)在 Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration.get_Active() 在 Microsoft.ApplicationInsights.Extensibility.Web.RequestTracking.WebRequestTrackingModule..ctor() 在里面 f:\Builds\629\AppInsights\DC\u Core\u release\u signed\src\Web\Web.Shared.Net\RequestTracking\WebRequestTrackingModule.cs:line 二十八

但应用程序仍然运行良好

3) 在fiddler中,我可以看到打电话到dc.services.visualstudio.com,我相信这是为了了解应用程序

4) 我很少使用perfview工具。我刚刚运行了perfview工具的Menu>Collect>run选项中提到的命令

然后,我在azure emulator的visual studio中运行了该应用程序

加载主页后,我停止了perfview(只需单击菜单中的abort)

我不确定它是否收集了所需的数据。只有Eventstats选项卡有一些数据。把它贴在这里

名称计数平均大小堆栈计数PerfView/PerfViewLog 33 175 0 Windows内核/SysConfig/VolumeMapping 9 40 0 性能视图/可提供的参数6 132 0 Microsoft应用程序高