SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Learning...
    Join Date
    Jan 2003
    Posts
    778
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    JScript Classic ASP “Automation server can't create object”

    I have a DLL registered on 3 different servers, one development and two production.

    No we are trying to put the site on a second production server so that we can load balance it. On development and one of the production servers, i can create my object and utilize it just fine. On the second production server, it gives me:

    Code:
    Microsoft JScript runtime error '800a01ad'
    Automation server can't create object
    /code/FileSystem.asp, line 459
    Line 459 in this case is:

    Code:
    var oFSO = Server.CreateObject("Hydro.Comm.FileSystem");
    Both production servers are Windows Server 2008 with latest patches installed. I am confused as to why the second server is not registering this DLL properly.

    We followed the following steps to register the DLL on each server:

    We needed to install the windows sdk for .net framework 4

    http://www.microsoft.com/download/en...n.aspx?id=8279

    Then we needed to add the assembly to the GAC

    C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools>gacutil /i

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\HydroComFileSystem.dll

    Then we needed to register the assembly with regasm

    regasm /tlb HydroComFileSystem.dll
    Thanks for looking.
    The beauty of life is not dependent on how happy you are,
    but on how happy others can be because of you...

  2. #2
    SitePoint Enthusiast
    Join Date
    Jan 2012
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can you create some other object on that server, like

    var oFSO = Server.CreateObject("Scripting.FileSystemObject");

  3. #3
    Learning...
    Join Date
    Jan 2003
    Posts
    778
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes.

    I only can't create object to dll that we registered.
    The beauty of life is not dependent on how happy you are,
    but on how happy others can be because of you...

  4. #4
    Learning...
    Join Date
    Jan 2003
    Posts
    778
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Had to configure the app pool to allow 32-bit applications
    The beauty of life is not dependent on how happy you are,
    but on how happy others can be because of you...

  5. #5
    SitePoint Enthusiast
    Join Date
    Jan 2012
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for posting the solution


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •