c# 通过webbrowser控件绑定httpwatch(一个BHO),运行出现错误,如何解决?
老鱼趣多多 2011-07-05 02:12:19 webbrowser调用httpwatch如下
HttpWatch.ControllerClass watch = new HttpWatch.ControllerClass();
plugin = watch.IE.Attach(webBrowser1.ActiveXInstance as SHDocVw.IWebBrowser2);
plugin.Log.EnableFilter(false);
webBrowser1.Navigate("www.163.com");
出现错误信息如下:
Failed to attach to browser. Please check that both HttpWatch entries are enabled in IE's Tools->Manage Addons window and that 'Enable third-party browser extensions' is checked under Tools->Internet Options->Advanced->Browsing
“HttpWatchBHOHelper.vshost.exe”(托管): 已加载“D:\WindowsSpace\HttpWatchBHOHelper\HttpWatchBHOHelper\bin\Debug\Interop.SHDocVw.dll”
按照提示我检查了IE->管理加载项 及 工具->高级->加载项中启用第三方浏览器扩展都已经开启。不是这种错误。
请问错误出在哪里?