我有一个使用C#.Net开发的Azure服务。当我编译解决方案时,它没有任何错误。
但是当我运行它时,它会抛出以下错误:
无法加载类型的'Microsoft.ApplicationInsights.Telemetry.Web.ApplicationInsightsModule‘
下面是它在运行解决方案时所指向的部分。
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" relaxedUrlToFileSystemMapping="true" />
<customErrors mode="Off" defaultRedirect="/Error/Error.html" />
<pages controlRenderingCompatibilityVersion="4.5" />
<httpModules>
<add name="ApplicationInsights" type="Microsoft.ApplicationInsights.Telemetry.Web.ApplicationInsightsModule" />
</httpModules>
</system.web>发布于 2014-12-23 07:45:15
确保安装了Application包
发布于 2017-01-18 03:15:01
我也有过同样的问题。它是通过重新安装Microsoft.ApplicationInsights nuget软件包来修复的。
https://stackoverflow.com/questions/27615897
复制相似问题