locked
ActiveXObject is throwing error after following major steps RRS feed

  • Question

  • User-824961 posted

    Hi Team,

    We are using below line in JavaScript
     var x = new ActiveXObject('AxControls.HelloWorld');
     var Type = x.GetType();
     var ID = x.GetID();
     
    Its throwing error SCRIPT429: Automation server can't create object. We tried almost all major solution provided in different forum but still same issue. Internet settings/Registry setting etc..
     
    Also what is the procedure to sign 'AxControls.HelloWorld' and do we need to create C# Library for this application and provide the definition to x.GetType(); and x.GetID(); or 'AxControls.HelloWorld' is readily available dll ?
     
    IE Used: IE 11
    ASP.NET Website deployed in : Windows server 2008 r2
     
    Please let me know.

    Thanks..

    Tuesday, October 22, 2019 11:16 AM

Answers

  • User-474980206 posted

    Most likely the new server is not in the trusted list of web servers. To run active/x in IE, which is disabled by default, the Server must be in a trusted zone, and IE settings must be set. If this works with a current server, that server is probably in a local zone, while the new server is not.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 22, 2019 5:39 PM

All replies

  • User475983607 posted

    santosh-hegde

    We are using below line in JavaScript
    var x = new ActiveXObject('AxControls.HelloWorld');
    var Type = x.GetType();
    var ID = x.GetID();
    Its throwing error SCRIPT429: Automation server can't create object. We tried almost all major solution provided in different forum but still same issue. Internet settings/Registry setting etc..
    Also what is the procedure to sign 'AxControls.HelloWorld' and do we need to create C# Library for this application and provide the definition to x.GetType(); and x.GetID(); or 'AxControls.HelloWorld' is readily available dll ?
    IE Used: IE 11
    ASP.NET Website deployed in : Windows server 2008 r2
    Please let me know.
    Thanks..

    As shown, this code does not run on the server.  The ActiveX DLL must be installed and registered on every client machine that needs the logic.  Can you explain the problem you are trying to solve and why you are using ActiveX as opposed to a current technology.

    Tuesday, October 22, 2019 12:05 PM
  • User-824961 posted

    Thanks for your reply. This is legacy application and trying to read dongle information. This is working in physical windows server 2008 r2 and same is not working in cloud windows server 2008 r2.

    Also can you please provide me the steps for "ActiveX DLL must be installed and registered"

    Tuesday, October 22, 2019 1:58 PM
  • User475983607 posted

    Thanks for your reply. This is legacy application and trying to read dongle information. This is working in physical windows server 2008 r2 and same is not working in cloud windows server 2008 r2.

    JavaScript runs in the browser not the server.  The web server simply returns the JavaScript application to the client browser.

    Also can you please provide me the steps for "ActiveX DLL must be installed and registered"

    It depends how your ActiveX component works.  Often simply running the regscvs.exe from the command prompt as an admin.

    https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/regsvr32

    If the ActiveX component is is a COM+ application.

    https://docs.microsoft.com/en-us/windows/win32/cossdk/installing-new-components

    Keep in mind, this subject is out-of-scope for an ASP.NET forum as you are asking about Windows applications.

    Tuesday, October 22, 2019 3:53 PM
  • User-474980206 posted

    Most likely the new server is not in the trusted list of web servers. To run active/x in IE, which is disabled by default, the Server must be in a trusted zone, and IE settings must be set. If this works with a current server, that server is probably in a local zone, while the new server is not.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 22, 2019 5:39 PM