阅文时长 | 1.28分钟 字数统计 | 2058.4字符
主要内容 | 1、引言&背景 2、解决方案 3、声明与参考资料
『.NetCore异常:Could not load file or assembly 'Microsoft.AI.Web' or one of its dependencies. The system cannot find the file specified.』
编写人 | SCscHero 编写时间 | 2022/1/28 PM3:43
文章类型 | 系列 完成度 | 已完成
座右铭 每一个伟大的事业,都有一个微不足道的开始。

一、引言&背景   完成度:100%

a) 应对问题

遇到一个问题,.NetCore程序报错:

Server Error in 'XXXXX' Application.
Could not load file or assembly 'Microsoft.AI.Web' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly "Microsoft.Al.Web' or one of its dependencies. The system cannot find the file specified.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The fllowing information can be helpful to determine why the assembly 'MicrosoftAl.Web' could not be loaded.
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.
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].
Stack Trace:
[FileNotFoundException: Could not load file or assembly 'Microsoft.AI.Web' or one of its dependencies. The system cannot find the file specified.]
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBi
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflection0nly, StackCrawlMark& stackMark, IntPtr pPrivHos tBinder,
System.Type.GetType (String typeName, Boolean throwOnError, Boolean ignoreCase) +64
System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +59
System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignor
[ConfigurationErrorsException: Could not load file or assembly 'Microsoft.AI.Web' or one of its dependencies. The system cannot find the file specified.]
System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignor
System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, Boolean checkAptcaBit) +30

b) 应用场景

  • .NetCore框架下环境启动异常。

二、解决方案   完成度:100%

  1. 开始以为是谁动了依赖项设置。于是检查了两个配置文件:XXXX.runtimeconfig.json、XXXX.deps.json,发现无问题。
  2. 又重新发布了一下替换了runtime,发现文件夹被另一个进程占用,但检查了各个进程,应该是并没有占用的,由于服务器还跑了其他生产应用,无法重启,需要继续检查。
  3. 检查了应用程序池,Restart一下报了错,怀疑是内存泄漏或者是资源问题。后来又Check了下.NET CLR Version,发现成了" v4.0",可能是被人动过?或者是应用程序池自动改的?将其设置为"No Managed Code"即可正常使用了。

三、声明与参考资料   完成度:100%

原创博文,未经许可请勿转载。

如有帮助,欢迎点赞、收藏、关注。如有问题,请评论留言!如需与博主联系的,直接博客私信SCscHero即可。

.NetCore异常:Could not load file or assembly ‘Microsoft.AI.Web‘ or one of its dependencies. The system相关推荐

  1. Unable to read the project file 'client.csproj'. Could not load file or assembly 'Microsoft.Build.En

    错误详细信息: Unable to read the project file 'client.csproj'. Could not load file or assembly 'Microsoft. ...

  2. 异常Could not load file or assembly 'XXX' or one of its dependencies. 参数出错...

    在项目中突然降临一个异常,对于经验不足的我,没能果断找出原因,折腾了小半天,最后在网上查资料,死马当活马医,居然有效了.... 留个记录. 我遇到的错误如下: 提示某个DLL文件找不到或者它的某个依赖 ...

  3. 系统部署时的Could not load file or assembly 'Microsoft.VisualStudio.Enterprise.ASPNetHelper问题...

    在web.config中,如下代码段 <compilation debug="true" targetFramework="4.0" assemblyPo ...

  4. KSO-Could not load file or assembly ‘Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral

    大概的意思就是 缺少这个包了,请用nuget 下载 Microsoft.Bcl.AsyncInterfaces 就可以解决 别下载错版本号了

  5. Could not load file or assembly ‘Microsoft.windows.design.extensibility,version=4.3.1.0,Culture=neut

    根本原因就是系统中没有找到Microsoft.windows.design.extensibility.可以通过安装.net framework(不能安装runtime)解决大部分电脑的问题.还有一种 ...

  6. .netCore 反射 :Could not load file or assembly 系统找不到指定文件

    System.IO.FileNotFoundException:"Could not load file or assembly 'ClassLibrary2, Culture=neutra ...

  7. Could not load file or assembly App_Licenses.dll的问题

    今天在AspDotNetStorefront做定制化开发,编译的时候莫名其妙地报告Could not load file or assembly 'App_Licenses, Version=0.0. ...

  8. Could not load file or assembly 'System.Web.Extensions

    今日第一次玩AJAX,在本地我们调试运行AJAX.NET程序完全没有问题,但是一旦搭建网站后就出现 了一个Web.config文件异常: Configuration Error Description ...

  9. Could not load file or assembly (Exception from HRESULT: 0x80131047)-解决办法

    场景:.Net 4.0 MVC WebAPI 应用程序添加ApplicationInsights监控后在demo环境运行正常,发布到testing环境出现异常 异常信息: Could not load ...

  10. Could not load file or assembly 'System.Web.Extensions, Version=3.5.0.0

    前些天发现这个问题的,本来原有的项目是用VS2005开发的,后来装了VS2008,没想到问题就来了. 原项目是ASP.NET 2.0,用到了Ajax Extension,.NET 2.0用的Ajax ...

最新文章

  1. Android:相对布局综合小演练—智能家居,按键快速美化的小技巧
  2. pyecharts学习(part3)--简单图表绘制及参数优化
  3. PHP语言 -- 发起流程
  4. 【BZOJ4518】征途,斜率优化DP
  5. 数据化风控中的核心指标与报表汇总
  6. JavaWeb项目 打开首页就跳转debug模式的解决方法
  7. java对unicode转码,Unicode编码和中文互转(JAVA实现)
  8. 远程win10系统桌面时提示凭证不工作问题的终极解决办法
  9. 2017年全国大学生电子设计竞赛 单相用电器分析监测装置(K题)
  10. js中获得月份getmonth()+1,为什么要加1?
  11. 联想p720装系统_联想发布ThinkStation P920和P720至强处理器推荐
  12. 解决“我们注意到您的计算机目前处于离线状态。您需要连接网络以使用EA”
  13. 一、PS是PhotoShop的缩写
  14. 苹果手机有4g信号但是微信未连接服务器,苹果5s有显示4g网络但无上微信 是不是那里设置了 今天才出现的...
  15. Windows Support Tools
  16. E. Carrots for Rabbits(贪心)
  17. vue实现左右滑动tab(vue-touch)
  18. 如何实现网页版滚动截图
  19. 思维导图风暴Xmind 2022中文
  20. zero 免焊 树莓派_给树莓派 Zero 添加一个RCA视频输出插头

热门文章

  1. java 美发管理系统_美容美发管理系统毕业论文.doc
  2. 小白科普:10Mb独享服务器相当于多少流量?一个月3500GB流量的服务器可以支持多少PV?多少IP访问?
  3. Kent Beck : 领导的敏捷潮
  4. CentOS6 双线双ip服务器路由设置方法
  5. 发邮件自动回复本机IP——python版本
  6. 彻底理解vue的钩子函数,vue的生命周期理解,什么是vue的生命周期,钩子函数
  7. vue click 跳转外部链接
  8. 把QUERY的输出结果作为数据源_小七_新浪博客
  9. 从零开始用uniapp搭建一个APP
  10. 重磅!Apache RocketMQ 深圳沙龙报名开启!