473,400 Members | 2,163 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,400 software developers and data experts.

C# late binding on remote DCOM error: "Class not registered"

I attempted to find the solution and came close
(http://blogs.msdn.com/robgruen/archi...24/359660.aspx) but cannot go
any further. I have an ASP.NET (2003/C#) app that calls a VB 6 DCOM on a
remote server. Identity used on DCOM is the same identity as used for the IIS
app.

Line of code that throws error:
object obj =
Activator.CreateInstance(Type.GetTypeFromProgID("c lass","server1"));

Error thrown:
System.Runtime.InteropServices.COMException: Class not registered

However, if I step through my code and change the aforementioned line to:
object obj =
Activator.CreateInstance(Type.GetTypeFromProgID("I nternetExplorer.Application.1","server1")); it will step through without error.

I can login to the server and see the class in registry. Remote VB6 clients
(exe's) that use this component are able to use it successfully, so I'm
positive that the component is setup properly and being used successfully via
the VB6 exe's. All I'm trying to do is call a single function in the class
and get its return value.
Sep 20 '06 #1
1 5291
I can't find any references to that old posting I had made, seems like it
fell of the face of the Earth. You can get to it here:
http://groups.google.com/group/micro...fcb9330b02501b
--
My postings are provided "AS IS" with no warranties, and confer no rights.
"Paul W" wrote:
I attempted to find the solution and came close
(http://blogs.msdn.com/robgruen/archi...24/359660.aspx) but cannot go
any further. I have an ASP.NET (2003/C#) app that calls a VB 6 DCOM on a
remote server. Identity used on DCOM is the same identity as used for the IIS
app.

Line of code that throws error:
object obj =
Activator.CreateInstance(Type.GetTypeFromProgID("c lass","server1"));

Error thrown:
System.Runtime.InteropServices.COMException: Class not registered

However, if I step through my code and change the aforementioned line to:
object obj =
Activator.CreateInstance(Type.GetTypeFromProgID("I nternetExplorer.Application.1","server1")); it will step through without error.

I can login to the server and see the class in registry. Remote VB6 clients
(exe's) that use this component are able to use it successfully, so I'm
positive that the component is setup properly and being used successfully via
the VB6 exe's. All I'm trying to do is call a single function in the class
and get its return value.
Sep 21 '06 #2

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

Similar topics

0
by: Grant Ord | last post by:
On Windows 2000 Inetinfo.exe verson 4.02.0622 GetScriptEngineInfo= VBScript Version 5.6.8515 In an ASP page I get the following error Error Type: (0x8002801D) Library not registered....
3
by: Brian Fulford | last post by:
I am trying to deploy a web app with a deployment project since I am including Crystal Reports for .Net. I attached all the merge modules, etc but I am getting a build error when I try to build...
1
by: Belee | last post by:
I have been using crystal report in my c# app and now when I want to modify or create a new one it gives me the following error message from Visual Studio 2003 environment "class not registered". ...
1
by: compassSoftware | last post by:
I am trying to work on an application that uses a dll as a COM object. I am coming in late to this project to administer/update the application. I notice in the References that a particular...
0
by: Winterminute | last post by:
I am trying to read a list of install programs using WMI with ASP.NET/C#. However, it fails with "Invalid Class". I have confirmed that if I query LOCALHOST then it works fine, but if I query a...
8
by: kevin | last post by:
I have a form and in the form I have a sub that uses a class I instantiate using visual basic code: Public oCP As New Rs232 'instantiate the comm port I need to share this sub with...
5
by: crystalattice | last post by:
I've finally figured out the basics of OOP; I've created a basic character creation class for my game and it works reasonably well. Now that I'm trying to build a subclass that has methods to...
1
by: rocksoft | last post by:
Hi, i got error "class not registered" when i try to create web setup and deployment project to my web application. i'm used Asp.net and c# to my application, i created web setup and deployment...
0
by: Bill | last post by:
Hi everyone, I've been trying to figure out this error for a while, hopefully someone has had a similar experience and has some insight. I recent migrated an ASP.NET app to 2.0. On pages that...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...
0
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...

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.