Windows7: .NET ActiveX doesnt work when installed from cab file
Hi, I've developed .NET ActiveX control, wrapped it in cab file, wrote the inf, signed the cab file using generated certificate and it all works fine - after visiting a html page the control is installed from the cab file and the activeX code is executed. In Internet options in IE i've enabled everything which I think is connected with activeX. However, i had to: In Windows XP - add the server to trusted sites In WIndows 7 - run IE as an administrator only to install the cab file (in normal mode IE asks whether to install the cab file every time i visit the page and it doesnt install activeX from msi) - close the IE and run it normally to execute the code (in administrator mode activeX is not executed. The error is from my html page: Some error happens, error message is: undefined Why it doesnt work at 100% in one of these mode? ) Here is the HTML code, the html is in Internet zone or the Intranet zone, doesnt matter: [CODE] <!DOCTYPE> <html> <head> <title>my webpage</title> </head> <body> <OBJECT id="DemoActiveX" classid="clsid:4B11GF34-96AC-4B9D-T05E-45D23EA9MCED" codebase="mySignedCab.cab"></OBJECT> <script type="text/javascript"> try { var obj = document.DemoActiveX; if (obj) { alert(obj.SayHello()); } else { alert("Object is not created!"); } } catch (ex) { alert("Some error happens, error message is: " + ex.Description); } </script> </body> </html> [/CODE]
April 1st, 2012 5:26am

Hi , As this issue occurs in Development environment, in order to get the answer effectively, it is recommended to post a new question in the MSDN forumfor further discussion. The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding. Also, the following link for your reference: http://msdn.microsoft.com/en-us/library/dd560515.aspx
Free Windows Admin Tool Kit Click here and download it now
April 2nd, 2012 3:47am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics