Automation Server can't create Object - InfoPath Dev
in

InfoPath Dev

Automation Server can't create Object

Last post 05-06-2005 01:21 PM by Agni Jonnalagadda. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-06-2005 06:27 AM

    Automation Server can't create Object

    	var wshShell = new ActiveXObject("Wscript.Shell");
    var wshEnv = wshShell.Environment("Process");
    var username = wshEnv.Item("UserName");
    XDocument.DOM.selectSingleNode("/my:name").text = username;


    this is the extract of the code ... I always get an error message, that the "automation server can't create object". What should I do ?

    My configuration: Win2k3 server SP1, Infopath SP1 (everything patched)

    hopefull

    Sebastian
  • 05-06-2005 01:21 PM In reply to

    Re: Automation Server can't create Object

    I dont think this question is related to InfoPath, its more of a security issue I guess. Here are the things that you can try it out

    1) Security Settings in your IE do not allow for this.
    a) Are you an admin on the box ?
    b) Where is the form published ?

    You can try settign this In Your IE.
    change settings on Internet Explorer , Tools, Internet options, Security, custom level and then enable or prompt "Initializing and Script Activex controls not marked as safe" This means lower the security in browser

    2) your scripting engine instalatiion maybe corrupted
    You might get one fromhttp://www.microsoft.com/downloads/details.aspx?FamilyID=0a8a18f6-249c-4a72-bfcf-fc6af26dc390&DisplayLang=en

    3) Try searching for "ActiveXObject Wscript.Shell automation server can't create object" in google and you might find something useful.

    Agni
    InfoPathDev India
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.