我想测试 Azure Insights 遥测,为此,我创建了一个新的免费 Azure 帐户和一个新的 MVC Web 应用程序 (Framework 4.7.2)
应用程序运行正常。
之后,我尝试添加遥测:项目 -> 添加 Application Insights 遥测
按照向导操作。我收到以下错误,但无法解决。
System.NotImplementedException: The method or operation is not implemented. at EnvDTE.SourceControl.CheckOutItem(String ItemName) at Microsoft.WebTools.Shared.VS.VisualStudio.Wrappers.VsSourceControlWrapper.d__4.MoveNext() --- End of stack trace from previous location where exception was thrown
我也尝试更新 NuGet 包。但无事可做。
我已经一步一步跟着微软官方docs .
安装过程的一些详细信息:
我仅在 .NET 框架方面遇到问题。
使用 .NET Core,一切都可以正常工作。
谷歌搜索没有找到任何解决方案。
最佳答案
您还需要安装一些其他依赖项,
Install-Package Microsoft.ApplicationInsights.DependencyCollector -Version 2.6.4
Install-Package Microsoft.ApplicationInsights.PerfCounterCollector -Version 2.6.4
Install-Package Microsoft.ApplicationInsights.Web -Version 2.6.4
Install-Package Microsoft.ApplicationInsights.WindowsServer -Version 2.6.4
Install-Package Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel -Version 2.6.4
如上所述尝试 here
关于asp.net-mvc - 我无法将 insigths 遥测添加到新的 Asp .NET 框架项目中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63031452/