我在我的 ASP.NET-MVC 应用程序中使用 mshtml 来解析 HTML。在我安装了 VS2008 Professional 的开发机器上运行良好。在我安装了 VS Express 2008/WebDev 的登台机器上运行良好。但是当尝试在没有 Visual Studio 版本的生产服务器上加载 COM 对象时,它会引发 FileNotFoundException。
Exception type: FileNotFoundException Exception message: Could not load file or assembly
'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 或其依赖项之一。该系统找不到指定的文件。
我不想在生产机器上安装 Visual Studio。我读过一个建议,运行 C:\Program files\Common Files\Merge modules\vs_piaredist.exe 解决了这个问题,但这个目录在我的生产机器上不存在。如何在生产机器上使用 mshtml?