none
Automation Server Can't Create Object RRS feed

  • Question

  • Hi, Everybody...

    I have two computers.  Same operating systems (Windows 7).  Same browser versions (Internet Explorer 11).  Same ActiveX setup wizard.  Same Test ActiveX controls HTML file.

    Execution of the Test ActiveX controls HTML file on one machine produces the desired results.  Execution of the Test ActiveX controls HTML file on the other machine produces the following error message: Automation Server Can't Create Object.

    I have Googled "Automation Server Can't Create Object"...  There's almost a quarter of a million results.  I have tried MANY suggestions, but they do not resolve my issue.  I feel like I am shooting in the dark.

    Is there a way to know WHAT is the root cause?...  Is it browser settings?...  Is it Windows settings?...  Is it some other settings?...  How/where can I extract more details about my error?  I need to know WHY can't the Automation Server create object?  WHY does it work on one machine and WHY not the other?

    The error is thrown precisely where the ActiveX Control is instantiated.  FWIW, see code below.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
        <title><titleName></title>
        <link href="App_Themes/Default/Default.css" rel="stylesheet" type="text/css" />
    </head>
    
    <body onload="myload();">
        <form name="form1" method="post" action="<labelService>.aspx?<queryString>" id="form1">
            <img id="Image1" src="data:image/jpeg;base64,<imageData>" style="height: 600px; width: 400px; border-width: 0px;" alt="label image" />
        </form>
        <script type="text/javascript">
            var myBrowserPrinterControl;
    
            function myload() {
                try {
                    myBrowserPrinterControl = new ActiveXObject('BrowserPrinter.BrowserPrinterControl'); // The ERROR occurs here!
                    if (myBrowserPrinterControl != null) {
                        myBrowserPrinterControl.Print('<printerName>', '<imageData>');
                    }
                    else
                        alert('BrowserPrinterControl failed to load.');
                }
                catch (err) {
                    alert('BrowserPrinterControl error: ' + err.message);
                }
            }
            setTimeout(function () { window.close(); }, 15000);
        </script>
    </body>
    </html>

    • Moved by 宝宝徐 Tuesday, September 19, 2017 1:51 AM
    Friday, September 15, 2017 8:23 PM

Answers

All replies

  • Hi Informatosaurus,

    Thank you for posting in MSDN forum.

    This forum is discussing about .Net Framework setup and servicing, as your question is about execution of the Test ActiveX controls HTML file, I help you guide this case to a much appropriate forum for a much professional support.

    Thank you for your understanding.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, September 18, 2017 8:44 AM
  • Might ask the controls developer of possibly over here.

    https://forums.asp.net/

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Tuesday, September 19, 2017 12:31 PM
    Moderator