无法加载文件或程序集MSHTML,版本= 4.0.0.0, [英] Could not load file or assembly 'MSHTML, Version=4.0.0.0,

查看:117
本文介绍了无法加载文件或程序集MSHTML,版本= 4.0.0.0,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在使用ASP.NET / C#应用程序。它基本上是根据一些参数来擦除某个网站。我打开我的项目并尝试运行它。它似乎工作正常,直到我尝试实际刮网站我得到这个错误:

So I am working on a ASP.NET/C# application. It basically scrapes a certain website based on some parameters. I open my project and try to run it. It seems to work fine until I try to actually scrape the site I get this error:

无法加载文件或程序集MSHTML,版本= 4.0.0.0,Culture = neutral,PublicKeyToken = null'或其依赖关系之一。系统找不到指定的文件。

这是很奇怪的,因为我有一个类似的项目使用相同的DLL,没有我没有问题。

Which is weird because I have a similar project using the same dll's and no I have no problems.

推荐答案

所以我删除了对DLL的引用,并再次添加。现在似乎正在工作。

So I removed the reference to the DLL and added again. It seems to be working now.

这篇关于无法加载文件或程序集MSHTML,版本= 4.0.0.0,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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