COM object with CLSID {5D92885E-7D11-4160-BB23-818831ADDD43} is ei

G

Guest

Hi,

I am trying to use a ActiveX Com component in a aspx web page.

First I have made a reference to the .dll.
I have also used aspCompat="true" in the page.
Then I use the code below...

Dim ObjDir As Mydll.Directory
Dim ComFile As Mydll.File

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
ObjDir = New Mydll.Directory
End Sub

But when I start the page I get the error below.
Do anybody have any suggestions?
The .dll is registrated.
Is there any security settings that must be changed?

Server Error in '/' Application
--------------------------------------------------------------------------------

COM object with CLSID {5D92885E-7D11-4160-BB23-818831ADDD43} is either not
valid or not registered.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: COM object
with CLSID {5D92885E-7D11-4160-BB23-818831ADDD43} is either not valid or not
registered.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:


[COMException (0x80040154): COM object with CLSID
{5D92885E-7D11-4160-BB23-818831ADDD43} is either not valid or not registered.]
Web_ftp.WebForm1.Page_Load(Object sender, EventArgs e) +13
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
 
J

Jinsong Liu

Without generate a .NET wrapper class first, you can only do late
binding. The recommanded way to use COM component in ASP.NET is to
generate a .NET wrapper class first by using tlbimp.exe utility. You
can find more detail by searching "COM component compatibility" in
the ".NET framework SDK document".

JSL
 
G

Guest

Hi,

Thank you for your suggestion.
Unfortunately this doesen´t solve my problem, I still get the same error...
Do anyone have any other suggestions?

/Thomas

Jinsong Liu said:
Without generate a .NET wrapper class first, you can only do late
binding. The recommanded way to use COM component in ASP.NET is to
generate a .NET wrapper class first by using tlbimp.exe utility. You
can find more detail by searching "COM component compatibility" in
the ".NET framework SDK document".

JSL

Hi,

I am trying to use a ActiveX Com component in a aspx web page.

First I have made a reference to the .dll.
I have also used aspCompat="true" in the page.
Then I use the code below...

Dim ObjDir As Mydll.Directory
Dim ComFile As Mydll.File

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
ObjDir = New Mydll.Directory
End Sub

But when I start the page I get the error below.
Do anybody have any suggestions?
The .dll is registrated.
Is there any security settings that must be changed?

Server Error in '/' Application.
--------------------------------------------------------------------------------

COM object with CLSID {5D92885E-7D11-4160-BB23-818831ADDD43} is either not
valid or not registered.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: COM object
with CLSID {5D92885E-7D11-4160-BB23-818831ADDD43} is either not valid or not
registered.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:


[COMException (0x80040154): COM object with CLSID
{5D92885E-7D11-4160-BB23-818831ADDD43} is either not valid or not registered.]
Web_ftp.WebForm1.Page_Load(Object sender, EventArgs e) +13
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top