J
Jen
Hi,
I'm having an issue calling a dll from an ASP.NET page. The code that
tries to instantiate a COM dll (class) is in a Class Library. I can
call the code successfully from a windows application in the same
solution but if I try to call the code from the web application I get
the error:
COM object with CLSID {E0BCDB1B-6B9B-4FD0-A61C-1AB848DB0720} 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 {E0BCDB1B-6B9B-4FD0-A61C-1AB848DB0720} is either not
valid or not registered.
It's happening on the instantiation line ie:
AVLPICOM.AVLCOMPI avlAPI = new AVLPICOM.AVLCOMPIClass();
I have tried:
- changing "machine" to "SYSTEM" in the machine.config file
- adding ASPNET user to the web directory, the windows app directory
(where the class library is) and the directory where the dll is
registered (under C:\Program Files\<Supplier>\ with read & execute,
read, and write privileges.
- creating a new project which only has one web page that tries to
instantiate the class.
I'm at a loss as to why it works for the windows application but not
the web application. If anyone has any suggestions they would be
greatly appreciated - I'm beginning to feel like I've tried all the
standard responses that seem to be posted about this issue.
Thanks,
Jen
(e-mail address removed)
I'm having an issue calling a dll from an ASP.NET page. The code that
tries to instantiate a COM dll (class) is in a Class Library. I can
call the code successfully from a windows application in the same
solution but if I try to call the code from the web application I get
the error:
COM object with CLSID {E0BCDB1B-6B9B-4FD0-A61C-1AB848DB0720} 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 {E0BCDB1B-6B9B-4FD0-A61C-1AB848DB0720} is either not
valid or not registered.
It's happening on the instantiation line ie:
AVLPICOM.AVLCOMPI avlAPI = new AVLPICOM.AVLCOMPIClass();
I have tried:
- changing "machine" to "SYSTEM" in the machine.config file
- adding ASPNET user to the web directory, the windows app directory
(where the class library is) and the directory where the dll is
registered (under C:\Program Files\<Supplier>\ with read & execute,
read, and write privileges.
- creating a new project which only has one web page that tries to
instantiate the class.
I'm at a loss as to why it works for the windows application but not
the web application. If anyone has any suggestions they would be
greatly appreciated - I'm beginning to feel like I've tried all the
standard responses that seem to be posted about this issue.
Thanks,
Jen
(e-mail address removed)