无法加载文件或程序集"Microsoft.AI.Web"或其依赖项之一.该系统找不到指定的文件 [英] Could not load file or assembly 'Microsoft.AI.Web' or one of its dependencies. The system cannot find the file specified

查看:623
本文介绍了无法加载文件或程序集"Microsoft.AI.Web"或其依赖项之一.该系统找不到指定的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试按api将Web Api成功发布到Azure后,出现以下错误.

After successfully publishing my Web Api to Azure when i try to hit the api i get the following error.

这是指向api的链接

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

注意:与程序集绑定失败日志记录有一些性能上的损失. 要关闭此功能,请删除注册表值[HKLM\Software\Microsoft\Fusion!EnableLog].

Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

推荐答案

我通过以下方法解决了这个问题:

I solved this problem by doing this:

Install-Package Microsoft.ApplicationInsights.Web

要将Application Insights仅安装到Web/API项目:

To install Application Insights only to the Web/API Project:

Install-Package Microsoft.ApplicationInsights.Web YourProjectName

要运行这些命令,请在Visual Studio中通过单击以下内容打开程序包管理器:工具-> NuGet程序包管理器->程序包管理器控制台

To run these commands, in Visual Studio open Package Manager by clicking on: Tools -> NuGet Package Manager -> Package Manager Console

这篇关于无法加载文件或程序集"Microsoft.AI.Web"或其依赖项之一.该系统找不到指定的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆