Could not load file or assembly 'MSHTML, Version=4.0.0.0,

随声附和 提交于 2019-12-25 06:49:11

问题


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:

Could not load file or assembly 'MSHTML, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

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


回答1:


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



来源:https://stackoverflow.com/questions/6204843/could-not-load-file-or-assembly-mshtml-version-4-0-0-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!