“System.Runtime.InteropServices.COMException”类型的未经处理的异常在 mscorlib.dll 中发生 其他信息: 检索 COM 类工厂中 CLSID 为 {0002DF01-0000-0000-C000-000000000046} 的组件失败,原因是出现以下错误: 80040154 没有注册类 (异常来自 HRESULT:0x80040154 (REGDB_E_CLASSNOTREG))。
调试欢乐多
Microsoft HTML Object Library
Microsoft Internet Controls
Microsoft Shell Controls And Automation
SHDocVw.InternetExplorer ie = new SHDocVw.InternetExplorer();
ie.DocumentComplete +=ie_DocumentComplete;
ie.Navigate("http://www.baidu.com");
ie.Visible = true;