Previous Next

Thread: Active X error can't create object

Last post 12-12-2007 10:24 AM by e1ny. 8 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (9 items)

Sort Posts:

  • 12-10-2007, 5:22 PM

    • e1ny
    • Top 25 Contributor
    • Joined on 12-10-2007, 4:50 PM
    • Posts 128

    Active X error can't create object

    Hi All: I have a dll that does a simple encrypt/decrypt of data. I've used it for about 6 years on IIS 5-6. Typically I would just regsvr32 and it would work when called from an ASP page.

     I've moved the website to IIS7 to test, and I ran the same regsvr32 command with the dll, and didn't receive an error.

     Everything works properly except when the dll is called on the ASP page. I'll get a 500 error in the browser, and the log will have something like:

    2007-12-09 20:27:53 192.168.1.196 GET /manager/viewreceipt.asp r_id=497H6P6548164D14W6DA8U3W343ZWN366FLUU2C26GZH663728K21QV61K16262812032007|99|800a01ad|ActiveX_component_can't_create_object 80 - 71.247.15.102 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.8.1.11)+Gecko/20071127+Firefox/2.0.0.11 500 0 0 156

    the dll is sitting in its own folder outside of InetPub. I've given IUSR read & excute access to the folder and the dll, but am still getting the error. Not sure what to try next?

     

  • 12-10-2007, 5:46 PM In reply to

    • davcox
    • Top 50 Contributor
    • Joined on 07-21-2006, 6:28 PM
    • Redmond
    • Posts 113

    Re: Active X error can't create object

    Can you instantiate the object in a simple VBScript?  (try running the vbscript as different users, to see if it's a permissions issue)

    Also, try using Failed Request Tracing (a new feature in IIS7) to see potentially more details. 

    http://www.iis.net/articles/view.aspx/IIS7/Managing-IIS7/Diagnostics-in-IIS7/Using-Failed-Request-Tracing/Troubleshooting-Failed-Requests-using-Tracing-in-I 

    Dave

  • 12-11-2007, 8:22 AM In reply to

    • e1ny
    • Top 25 Contributor
    • Joined on 12-10-2007, 4:50 PM
    • Posts 128

    Re: Active X error can't create object

     Thanks for the feedback...when you say instantiate the object in a simple VBScript do you mean outsde the context of an ASP Page? If so, I'm not sure how to do that (I didn't create this object, someone provided it to me). Also, I'm not sure how to run the VBS as a different user?

     I will try the failed req trace and post the results as well.
     

  • 12-11-2007, 9:17 AM In reply to

    • e1ny
    • Top 25 Contributor
    • Joined on 12-10-2007, 4:50 PM
    • Posts 128

    Re: Active X error can't create object

     Hi: I ran a trace and this is all that's in it:

     
    Error
    294. -ASP_LOG_ERROR 
  • 12-11-2007, 9:21 AM In reply to

    • e1ny
    • Top 25 Contributor
    • Joined on 12-10-2007, 4:50 PM
    • Posts 128

    Re: Active X error can't create object

    Also: I had already looked up that error, which led me to a M$ft support page suggesting that IUSR did not have sufficient permissions on the dll...I had earler given permissions to IUSR to access the dll, but that didn't seem to make a difference...is there a different user account that needs permissions like "IWAM" in IIS 6 or something like that? 

  • 12-11-2007, 2:50 PM In reply to

    • davcox
    • Top 50 Contributor
    • Joined on 07-21-2006, 6:28 PM
    • Redmond
    • Posts 113

    Re: Active X error can't create object

    The VBScript would be a file named test.vbs containing:

    dim myobj
    set myobj = WScript.CreateObject("YourCOMObjectsProgID")
    WScript.Echo("success")

    Then use the "runas" command to run the script as different users ... it's one way to isolate the issue.

    Dave

  • 12-11-2007, 3:37 PM In reply to

    • e1ny
    • Top 25 Contributor
    • Joined on 12-10-2007, 4:50 PM
    • Posts 128

    Re: Active X error can't create object

    Hi: Thanks for the clarification.

    If  the object's ProgID is the name I call to instantiate the function with Server.createobject() , then when I try to run it from a vbs file I receive the following WSH error:

    Error: Could not create object named  "myobject.myfunction"
    Code: 80040154

    Source: WScript.CreateObject

     I was logged in as the Administrator when I tried to run it.
     

    FWIW: The website is running under the IUSR_[machinename] account. I googled the error code above and found a support note about trying to temporarily add IUSR to the administrators group. I did, and that didn't make any difference.

    The dll is in the registry, and there's only one incidence of it.
     

  • 12-11-2007, 7:00 PM In reply to

    • davcox
    • Top 50 Contributor
    • Joined on 07-21-2006, 6:28 PM
    • Redmond
    • Posts 113

    Re: Active X error can't create object

    Frankly, there are any number of reasons why the object can't be created.  It could be a permissions issue (which doesn't seem to be the case here), or your DLL has a dependency on some other binary or API that doesn't exist in Windows Server 2008.  You'll have to debug it further to see your object isn't being created.  Attaching a debugger to your script is one way to do this and/or doing a dependency check.  Sorry I can't help you any more than that. 

    Dave

  • 12-12-2007, 10:24 AM In reply to

    • e1ny
    • Top 25 Contributor
    • Joined on 12-10-2007, 4:50 PM
    • Posts 128

    Re: Active X error can't create object

    well, thank you for trying anyway...unfortunately there is no source code for the dll, and the person who wrote it is nowhere to be found.

Page 1 of 1 (9 items)
Page view counter