ActiveX Component Can't Create Object Exception in ASP.Net 
Author Message
 ActiveX Component Can't Create Object Exception in ASP.Net

I haven't seen this covered here nor on msft.com, so I thought I'd post...

I'm attempting to instantiate and use a COM component that was built with VB
6 within an ASP.Net page written with VB.Net. The component leverages COM+
services and runs in an application that is a library app. I've used the
tlbimp.exe tool to generate a strongly-named assembly out of this component.

I'm able to instantiate and use the resultant assembly just fine when
leveraging a Windows form application built with VB.Net, however when
attempting to use the assembly through ASP.Net, the following exception is
thrown:

    System.Runtime.InteropServices.COMException: ActiveX component can't
create object

This would be old general-purpose "can't create the component" hresult
of -2146827859. Intellisense don't complain about anything I've done and I
can complie and run just fine. The actual declaration and instantiation of
the component doesn't cause an issue, but the first use of a method of the
throws the exception.

The same behavior occurs if I attempt to leverage the original component in
ASP.Net (without creating a strongly-named assembly).

Are there known issues with the interoperability of ASP.Net/VB.Net and
legacy COM components?

Software profile:
    .Net Framework version 1.0.3705.288
    Windows 2000 Server SP3 (+ up to date QFE's)
    VS.Net 7.0.9466

Regards,

KS



Tue, 18 Oct 2005 02:42:00 GMT  
 ActiveX Component Can't Create Object Exception in ASP.Net

directive in the HTML and I have copied the assembly to the \bin directory,
per the .Net documentation. Hence, my question. Thanks in advance.


Quote:
> I haven't seen this covered here nor on msft.com, so I thought I'd post...

> I'm attempting to instantiate and use a COM component that was built with
VB
> 6 within an ASP.Net page written with VB.Net. The component leverages COM+
> services and runs in an application that is a library app. I've used the
> tlbimp.exe tool to generate a strongly-named assembly out of this
component.

> I'm able to instantiate and use the resultant assembly just fine when
> leveraging a Windows form application built with VB.Net, however when
> attempting to use the assembly through ASP.Net, the following exception is
> thrown:

>     System.Runtime.InteropServices.COMException: ActiveX component can't
> create object

> This would be old general-purpose "can't create the component" hresult
> of -2146827859. Intellisense don't complain about anything I've done and I
> can complie and run just fine. The actual declaration and instantiation of
> the component doesn't cause an issue, but the first use of a method of the
> throws the exception.

> The same behavior occurs if I attempt to leverage the original component
in
> ASP.Net (without creating a strongly-named assembly).

> Are there known issues with the interoperability of ASP.Net/VB.Net and
> legacy COM components?

> Software profile:
>     .Net Framework version 1.0.3705.288
>     Windows 2000 Server SP3 (+ up to date QFE's)
>     VS.Net 7.0.9466

> Regards,

> KS



Tue, 18 Oct 2005 21:47:20 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. vb.net comClass: ActiveX component can't create object

2. help ActiveX Error : ActiveX component can't create object

3. Run-time error '429': ActiveX component can't create object

4. Run-Time Error '429': ActiveX component can't create object

5. Run time error '429': ActiveX component can't create object

6. ActiveX Error : ActiveX component can't create object

7. Run-time error '429': ActiveX component can't create object

8. Run time error '429': ActiveX component can't create object

9. Run-Time Error '429': ActiveX component can't create object

10. ActiveX component can't create object or return reference to this object (Error 429)

11. Activex component can't create object or return reference to this object (Error

12. Can't add class to ASP.NET project - Automation server can't create object

 

 
Powered by phpBB® Forum Software