[英]How to implement a triggerless .NET Core Console App as a continuous Azure WebJob?
[英]How to get app insights working on an azure webjob with .net core 2.x?
我有一个使用 .net 核心 2.1 的网络作业
我在 appsettings.json 上有一个检测密钥。
我在 program.cs 的方法 ConfigureServices 上有这个
services.AddApplicationInsightsTelemetry();
但是,当应用程序启动时出现此错误
System.InvalidOperationException: 'Unable to resolve service for type 'Microsoft.AspNetCore.Hosting.IHostingEnvironment' while attempting to activate 'Microsoft.AspNetCore.Hosting.DefaultApplicationInsightsServiceConfigureOptions'.'
我还没有找到任何可以帮助我解决这个问题的文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.