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
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