Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Automation server cannot create object ERROR

Automation server cannot create object ERROR

Scheduled Pinned Locked Moved ASP.NET
toolshelpsysadminlinuxtesting
4 Posts 3 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sutheesh
    wrote on last edited by
    #1

    function callreg() { alert("hello"); var shl = new ActiveXObject("WScript.Shell"); shl.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\2104", 0, "REG_DWORD"); } This script is correctly working in local system. When i access this with remote system, it shows an error automation server cannot create object. Can any one help me to solve it??? Thanks in advance

    Sutheesh

    V S 2 Replies Last reply
    0
    • S Sutheesh

      function callreg() { alert("hello"); var shl = new ActiveXObject("WScript.Shell"); shl.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\2104", 0, "REG_DWORD"); } This script is correctly working in local system. When i access this with remote system, it shows an error automation server cannot create object. Can any one help me to solve it??? Thanks in advance

      Sutheesh

      V Offline
      V Offline
      Venkatesh Mookkan
      wrote on last edited by
      #2

      Sutheesh wrote:

      var shl = new ActiveXObject("WScript.Shell"); shl.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\2104", 0, "REG_DWORD");

      Calling ActiveXObjects in IE are now critical. Microsoft has given many security updates to do so. You problem may be WScript.Shell is not available in your machine or it is not a trustable ActiveXObject in your machine. I had the same problem, when I tried to use Excel object. Later on, I used my own VB ActiveX to my need.

      [Venkatesh Mookkan] My: Website | Yahoo Group | Blog Spot

      1 Reply Last reply
      0
      • S Sutheesh

        function callreg() { alert("hello"); var shl = new ActiveXObject("WScript.Shell"); shl.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\2104", 0, "REG_DWORD"); } This script is correctly working in local system. When i access this with remote system, it shows an error automation server cannot create object. Can any one help me to solve it??? Thanks in advance

        Sutheesh

        S Offline
        S Offline
        Sun Rays
        wrote on last edited by
        #3

        Hi, Try to save your HTML file as hta extention. It may be solve your problem. Just try and see.

        Thanks, Sun Rays To get something you must have to try once. My Articles

        S 1 Reply Last reply
        0
        • S Sun Rays

          Hi, Try to save your HTML file as hta extention. It may be solve your problem. Just try and see.

          Thanks, Sun Rays To get something you must have to try once. My Articles

          S Offline
          S Offline
          Sutheesh
          wrote on last edited by
          #4

          Hi, i am using aspx page, not html file.

          Sutheesh

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups