473,791 Members | 2,985 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.AVLCOM PI avlAPI = new AVLPICOM.AVLCOM PIClass();

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*******@hotma il.com
Nov 18 '05 #1
1 2073
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*******@hotma il.com (Jen) wrote in message news:<75******* *************** ***@posting.goo gle.com>...
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.AVLCOM PI avlAPI = new AVLPICOM.AVLCOM PIClass();

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*******@hotma il.com

Nov 18 '05 #2

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

Similar topics

4
5373
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 CLSID {3CFCB90E-B0B0-11D2-8D8B-00C04F79EE8F} 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...
1
4095
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 (myDll.myDllClass dll=new myDllClass() and then I can see the methods implemented on the dll... until here everything is fine... I even see the object on the object browser... but when I run my project it gives the next error where I create the...
3
19478
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 create a instance of the COM object as such (c#): XMLAPI.GMDataClass gdc; gdc = new XMLAPI.GMDataClass(); I then receive the above mentioned error message. The strange thing is when I do the same thing in a Windows Forms.net application it works...
2
1499
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... Dim ObjDir As Mydll.Directory Dim ComFile As Mydll.File
1
1350
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 implemented and executed the application to my client, I get this error message "COM object with CLSID {10020200-EB1C-11CF-AE6E-00AA004A34D5} is either not valid or not registered."
13
15764
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 except for playing of a video file. I get the message:
5
2780
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 given Access and launch permissions to ASPNET user in DCOMCNFG and the identity set to launch user. But I get the following error, moment I try to create the Excel object: Dim oexcel As New Excel.Application "COM object with CLSID...
4
1800
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 given Access and launch permissions to ASPNET user in DCOMCNFG and the identity set to launch user. But I get the following error, moment I try to create the Excel object: Dim oexcel As New Excel.Application "COM object with CLSID...
1
1879
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 this application and have installed in my machine . Now when i tried running the exe i got the following exception: "System.Runtime.InteropServices.COM Exception(0x80040154):COM object with CLSID{EAA4E7EC-19EC-4576-ABFB-128BC024B429} is either not...
0
9515
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9995
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9029
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5431
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.