473,387 Members | 3,821 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,387 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 2045
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.