简体   繁体   English

自动化服务器无法使用.cab文件创建对象IE(9)-activex

[英]Automation server can't create object IE(9) - activex with .cab file

I have created a class library in c# and with the setup file i have created a cab file. 我在c#中创建了一个类库,并使用安装文件创建了cab文件。 Now in the html page inside object written codebase =xyz.cab. 现在在对象对象的html页面中编写代码库= xyz.cab。 every thing goes good. 一切顺利。 on running the html page it asks for installing the activex control and also installes successfully. 在运行html页面时,它会要求安装Activex控件,并且也会成功安装。 But when creating object of the active x, it shows error "Automation server can't create object". 但是在创建活动x的对象时,它显示错误“自动化服务器无法创建对象”。 After very much googling i am not able to resolve this issue. 经过大量谷歌搜索后,我无法解决此问题。 I have changed the browser setting as suggested by google. 我已经更改了谷歌建议的浏览器设置。 The setup file gets installs successfully and also in registry. 安装文件将成功安装,也将在注册表中安装。

var activeX = null;
         activeX = new ActiveXObject('Printer');

i am struggling with this error since last 7 hours. 自最近7个小时以来,我一直在努力解决此错误。 Any help guys..... 任何帮助人员.....

This is the error because ActiveX is not properly installed in the system. 这是错误的,因为ActiveX没有正确安装在系统中。 During creation of ActiveX control make sure that Register property is set to "vsdrpCOM" of the Primary output of set up file. 在创建ActiveX控件期间,请确保将注册属性设置为设置文件主要输出的“ vsdrpCOM”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM