« Previous Next »

Thread: IIS 7, classic ASP, .net Com object

Last post 07-23-2009 11:16 PM by steve schofield. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 07-21-2009, 4:21 PM

    IIS 7, classic ASP, .net Com object

    I have an object in .net that I have added the [ComVisible(true)] attribute to the class. I've built the Class, GacUtil to put it in the GAC, and RegAsm to register the com object. However, when executing some classic ASP Code I receive the following error:

    Microsoft VBScript runtime error '800a01ad'
    ActiveX component can't create object
    /waam/waampubfunc.inc, line 245

    The following is the .net object (Test object as the actual has too many dependencies):

    namespace ClassicASPComTest{  [ComVisible(true)]  public class ComTest  {     public string GetTimeStamp()    {      return DateTime.Now.ToString();    }  }} 

    The following is the Classic ASP code:

    dim test
    set test = Server.CreateObject("ClassicASPComTest.ComTest")
    ß line 245

    I’ve spent most of the day trying to find a solution for my issue, most posts I see mention issues with security, I’ve gone as far as adding the IUsr and Network Service to the admin group, but still receive the error. Other posts I’ve seen refer to regsvc32, but this is a managed DLL.

    I’m at a complete loss on this and would appreciate any help on getting this working. I’m sure it’s going to be something simple as I’ve spent a day on it
    J

  • 07-23-2009, 11:16 PM In reply to

    Re: IIS 7, classic ASP, .net Com object

    I would enable auditing and run process monitor isolating the particular PID of the w3wp process when reproducing the issue.

    Auditing. (Check the security event logs after reproducing the error)

    http://weblogs.asp.net/steveschofield/archive/tags/Troubleshooting/default.aspx

    Here is an example using process monitor

    http://weblogs.asp.net/steveschofield/archive/2009/02/20/530-user-cannot-log-in-home-directory-inaccessible-ftp-7-0-user-isolation-and-process-monitor.aspx

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
Page 1 of 1 (2 items)
Microsoft Communities