473,651 Members | 3,093 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Creat eInstance(Type. GetTypeFromProg ID("class","ser ver1"));

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.Creat eInstance(Type. GetTypeFromProg ID("InternetExp lorer.Applicati on.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 5317
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.Creat eInstance(Type. GetTypeFromProg ID("class","ser ver1"));

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.Creat eInstance(Type. GetTypeFromProg ID("InternetExp lorer.Applicati on.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
3249
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. /ResolutionT1/_ScriptLibrary/libraryvbs.inc, line 240
3
3952
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 the setup project. Could not find file 'C;\Web\ccsm\ccsm_search.aspx' 'Interface not registered' Thie file is included in the project, so I am not sure what is going on!!
1
4309
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". What have I done wrong. Help!!!
1
1708
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 DLL is referenced as "Interop.DLLName" and I have the original DLL file as just DLLName with no Interop. My first question is why is the word "Interop" on the beginning of the DLL name and how do you get it to that state?
0
2147
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 remote machine then it fails. If I enter incorrect credentials, then it fails with an access denied, so I know that I am at least connecting to the WMI provider. Here is the error:
8
11435
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 another form so to declare the sub I use visual basic code: Public Shared Function IsPortAvailable(ByVal ComPort As Integer) As Boolean
5
3670
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 determine the rank of a character but I keep getting errors. I want to "redefine" some attributes from the base class so I can use them to help determine the rank. However, I get the error that my base class doesn't have the dictionary that...
1
1913
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 project many times to my application, but i getting this error now.please anybody try to help me out, if anybody solve this problem really million thanks to them. Thanks.
0
2544
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 contain validation controls, I get the following error: "The WebResource.axd handler must be registered in the configuration to process this request.
0
8367
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8279
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
8703
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8589
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
5619
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
4145
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
4291
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2703
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1591
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.