ActiveX 部件不能创建对象: 'Adodb.Stream' 的解决办法
ActiveX 部件不能创建对象: 'Adodb.Stream' 的解决办法
ActiveX 部件不能创建对象: 'Adodb.Stream'
解决办法:
不能创建Adodb.Stream对象是因为安装了 ADODB.Stream KB870669 补丁。
修改注册表
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{00000566-0000-0010-8000-00AA006D2EA4}
把Compatibility Flags值改为0可以解决问题;
把Compatibility Flags值改为400则可防止别人用此漏洞攻击您的系统。
直接修改注册表的脚本代码:
可参考微软原文档:
http://support.microsoft.com/default.aspx?kbid=870669
To disable the ADODB.Stream object by manually creating the registry key, follow these steps:
Click Start, and then click Run.
In the Open box, type Regedit, and then click OK.
In Registry Editor, locate the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility
Right-click ActiveX Compatibility, point to New, and then click Key.
Type the following name for the key:
{00000566-0000-0010-8000-00AA006D2EA4}
Right-click the new key, point to New, and then click DWORD Value.
Name the value Compatibility Flags.
In the right pane, right-click Compatibility Flags, and then click Modify.
In the Edit DWORD Value dialog box, make sure that the Hexadecimal option is selected, type 400 in the Value data box, and then click OK.
Close Registry Editor.
When you set the compatibility flag, the ADODB.Stream object cannot access the hard disk of your computer in Internet Explorer. However, the ADODB.Stream object can still access your hard disk outside Internet Explorer.
Important Notes
When you add this registry key, only the ADODB.Stream object in Internet Explorer is affected. No other ADO objects are affected by this change.
After you apply the update, you will receive the following error message when you try to use an ADO stream object from an HTML page in Internet Explorer:
ActiveX component can’t create object: ‘ADODB.Stream’
If you are running an application in a corporate intranet environment, and the corporate intranet environment currently uses the ADODB.Stream object with Internet Explorer, applying this update may cause the application to break. To restore application functionality, Microsoft recommends that you first set your Internet Explorer browser security level to High, and then you must clear the compatibility flag of the ADODB.Stream object
To set your Internet Explorer browser security to high follow these steps:
In Internet Explorer, click Internet Options on the Tools menu.
Click the Security tab. Under Select a Web content zone to specify its security settings, click Internet.
Click Default Level, and then move the slider to High.
Click Apply, and then click OK to close the Internet Options dialog box.
Clear the compatibility flag of the ADODB.Stream object for Internet Explorer by setting the value to zero (0x0). Setting the value to zero (0x0) disables the key and restores functionality. To manually set the compatibility flag to zero, follow these steps:
Click Start, and then click Run.
In the Open box, type Regedit, and then click OK.
In Registry Editor, locate the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{00000566-0000-0010-8000-00AA006D2EA4}
In the right pane, double-click Compatibility Flags.
In the Edit DWORD Value dialog box, make sure that the Hexadecimal option is selected, type 0 in the Value data box, and then click OK.
Close Registry Editor.
最后更新于 2010-09-12 18:21:59 并被添加「ActiveX」标签,已有 26513 位童鞋阅读过。
本站使用「署名 4.0 国际」创作共享协议,可自由转载、引用,但需署名作者且注明文章出处
这个方法很实用!
这个就是完全不懂了 晕了
好像没有遇到这类的问题哦。
不过先收藏了
来学习下!
我没有遇到过!呵呵 我运用的是大众水准!哈哈
又是技术含量高的呀!
@ugguk
你是卖UGG的!?
@瑶哥
不是我的 是我做的站!
@ugguk
好厉害。能自己写程序
我表示深深地看不懂,哈哈
@学夫子
这个是运行某些软件,或本机开启IIS后出错时用到的!可能你没碰到过这类情况!
regsvr32 "C:\Program Files\Common Files\System\ado\msado15.dll"
regsvr32 scrrun.dll