【发布时间】:2018-05-27 06:15:46
【问题描述】:
我有一个 Asp.net Silverlight 应用程序,当我运行网站时突然开始收到以下错误:
无法加载程序集“Microsoft.AI.Web”或其依赖项之一...
我做了一些研究,发现这个程序集来自 ApplicationInsights,但有问题的网站没有引用 ApplicationInsight,也没有 ApplicationInsights.config 文件,尽管我在同一个解决方案中有另一个站点。此站点由另一位程序员通过不同的解决方案进行编辑。
如此答案所示:Could not load file or assembly 'Microsoft.AI.Web' or one of its dependencies. The system cannot find the file specified,我尝试使用以下命令安装 ApplicationInsights:
Install-Package Microsoft.ApplicationInsights.Web
但是在运行上面的命令时我收到以下错误消息:
Attempting to resolve dependency 'Microsoft.ApplicationInsights (= 2.4.0)'.
Attempting to resolve dependency 'System.Diagnostics.DiagnosticSource (≥ 4.4.0)'.
Install-Package : 'System.Diagnostics.DiagnosticSource' already has a dependency defined for 'System.Collections'.
At line:1 char:1
+ Install-Package Microsoft.ApplicationInsights.Web
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
我不知道这是否只是巧合,但我在 Windows 10 安装 Falls creator 更新后开始出现此错误。
编辑: 我忘了提到我正在使用 Visual Studio 2012 Update 5
【问题讨论】:
标签: c# asp.net silverlight