Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6228063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:19:30+00:00 2026-05-24T09:19:30+00:00

I have a custom ActiveX control that is used by web pages in IE.

  • 0

I have a custom ActiveX control that is used by web pages in IE. It loads just fine and is accessible to Javascript running in the page if I load it via an OBJECT tag like this:

<object id="ccl" codeBase="ccl.cab" classid="CLSID:12372D58-F10C-11CF-B7A9-0020AFD6A362" NOEXTERNALDATA="true"></object>

But if I try to load it via new ActiveXObject() like this:

var x = new ActiveXObject('myObj.abc');

I get the error “Automation server can’t create object”.

I thought these two methods of loading a document were equivalent in the case where the ActiveX control has already been installed. But apparently they’re not. Can anyone help me understand under what conditions the OBJECT tag method would succeed while the new ActiveXObject method would fail? I have double-checked to make sure the progID I’m passing into new ActiveXObject() is correct and appears in the registry under HKEY_CLASSES_ROOT\CLSID as it should. Thanks in advance for any ideas.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T09:19:31+00:00Added an answer on May 24, 2026 at 9:19 am

    Thanks to those who submitted the previous answers. While they didn’t provide a solution to my problem, they set me on the right track to find the answer myself.

    The problem was that my ActiveX control used the implementation of IObjectSafety provided by Microsoft’s SiteLock template (IObjectSafetySiteLockImpl). As the SiteLock documentation states:

    If you create an ActiveX control via script (instead of using the tag), then the
    scripting host is responsible for setting the site and not the browser. Neither JavaScript nor the > VBScript engine will set the site until after it has decided that you are safe, so you cannot
    create a site-locked control that way.

    In this case my ActiveX control did not need the SiteLock functionality, so I replaced IObjectSafetySiteLockImpl with the standard ATL implementation of IObjectSafey (IObjectSafetyImpl).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a web page that includes a custom OCX activex. The activex is
I have an Access 2007 form that is using an ActiveX Treeview control with
I have a table with an integer field that is used to control the
We have a (very large) existing codebase for a custom ActiveX control, and I'd
At the moment I have a custom ActiveX plugin that drops down the usual
I have built the following custom control that I have built and I set
I have a custom control written in C# that I would like to port
I have custom classes that I currently instantiate within App.xaml as resources. I want
i have custom cell with 2 buttons(the function of these buttons is just to
I have custom event that has several different subscribers who will all use the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.