【发布时间】:2013-09-22 04:27:59
【问题描述】:
我有一个使用 WatiN 的 c# 程序。它在我的开发 Windows 7 中编译并运行良好。但是,当我将程序复制到 azure 中的 Windows 2012 数据中心时,当应用程序尝试启动 Internet Explorer 实例(存在于 Windows 2012 数据中心中)时,它会引发以下异常:
System.IO.FileNotFoundException:无法加载文件或程序集 'Microsoft.mshtml,版本=7.0.3300.0,文化=中性, PublicKeyToken=b03f5f7f11d50a3a' 或其依赖项之一。这 系统找不到指定的文件。文件名:'Microsoft.mshtml, 版本=7.0.3300.0,文化=中性,PublicKeyToken=b03f5f7f11d50a3a' 在 WatiN.Core.Native.InternetExplorer.IEWaitForComplete.WaitForCompleteOrTimeout() 在 WatiN.Core.IE.WaitForComplete(Int32 waitForCompleteTimeOut) 在 WatiN.Core.Browser.GoTo(Uri url) 在 WatiN.Core.IE.FinishInitialization(Uri uri)
我对这个异常有点迷茫,服务器上缺少什么?
谢谢。
【问题讨论】:
-
这个关于 SO 的问题可能会有所帮助:stackoverflow.com/questions/2068159/…
标签: windows internet-explorer azure watin