473,287 Members | 1,399 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

COM object with CLSID is either not valid or registered issue with ASP.NET not Windows.

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
po*******@hotmail.com
Nov 18 '05 #1
1 2043
Jen
More Information..

I has assumed that I needed to update the machine.config for the
earlier framework as I was running this from VS.NET 2002 (and also
have 2003 on my machine). So I updated the other machine.config and
it works.

However I'm at a loss to work out what I need to change security wise
to make it work as I obviously can't be using the SYSTEM account in a
production environment.

I added ASPNET account to the web directory, to the bin subdirectory,
to the other windows folders (for like the class libaries) and the
directory where the dll is installed. I can't think what else to try.

Any advice would be greatly appreciated!!

Thanks,
Jen

po*******@hotmail.com (Jen) wrote in message news:<75*************************@posting.google.c om>...
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
po*******@hotmail.com

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ahmed | last post by:
i have tried running the csharpsite in my Microsoft Visual C#.net and after i hit the run button i keep getting the same error which is : Server Error in '/csharpsite' Application COM object with...
1
by: Cristina Malavasi | last post by:
Hi a have a COM dll made in C++ (I don't have the source code) I used tlbimp to create a managed .NET assembly dll... I reference this dll and import it with "using myDll" then I make an object...
3
by: Joel | last post by:
I have a asp.net web application executing on a windows 2003 Server. I make a reference in the project to a COM object and the Interop gets created successfully. When the application executes I...
2
by: Thomas Andersson | last post by:
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... ...
1
by: Daryl Zavier | last post by:
Hi Guys, Paradon my ignorance on this issue. I've done up a simple VB.net windows application which when executed from a client PC, is suppose to execute a DTS job on my server. When I...
13
by: brianbasquille | last post by:
Hello all, Am trying to modify / update the existing open-source OpenHTPC. I've renamed most of the namespaces and some forms (as well as added my own with modifications) and everything works...
5
by: RJN | last post by:
Hi I'm invoking the excel object from ASP.Net application. My development machine is Windows 2000 and MS Office is installed on my m/c. I have added reference to the Excel COM object, I have...
4
by: rjn | last post by:
Hi I'm invoking the excel object from ASP.Net application. My development machine is Windows 2000 and MS Office is installed on my m/c. I have added reference to the Excel COM object, I have...
1
by: BLavanya | last post by:
Hi, i have an windows application which uses an user built dll which uses COM dll. I have kept that dll in the bin and referenced in the project. it built sucessfully . I have created a setup.exe of...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.