473,748 Members | 2,361 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mixed code - "not registered"?

We are attempting to move a large development project into the .NET
age over time. We have a large number of ATL-based COM objects in
this project. Following the "Journal Poster" example provided by MS,
I have converted some of my COM projects into mixed code so that there
is both a .NET and COM interface to the underlying logic. So far, so
good.

In one of these former COM projects, four additional COM objects are
within from the underlying logic as a matter of executing the main
interface method. Our testing shows that this all works perfectly
well through older programs that are using this project as a COM
object, but when accessed as a .NET class library, only three of the
four objects are loaded properly - attempting to create the dispatch
for the fourth COM object causes a COM exception reporting that the
object is not registered.

I have traced the problem right down to the call to CoCreateInstanc e
and I have checked the registry, but I'm at a loss as to how to
proceed from here. Any ideas? Other than not being registered, what
can cause a "not registered" message?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 17 '05 #1
1 1304
Another common reason for a not registered error is that the this interface
would need a customer marshaller and that marshalling code is not
registered.

One of the reasonable ways to diagnose would be to use ntregmon or another
tool that shows registry calls to see what COM is looking for.

Ronald Laeremans
Visual C++ team

"Phre2d" <Ph****@excit e-dot-com.no-spam.invalid> wrote in message
news:40******** **@Usenet.com.. .
We are attempting to move a large development project into the .NET
age over time. We have a large number of ATL-based COM objects in
this project. Following the "Journal Poster" example provided by MS,
I have converted some of my COM projects into mixed code so that there
is both a .NET and COM interface to the underlying logic. So far, so
good.

In one of these former COM projects, four additional COM objects are
within from the underlying logic as a matter of executing the main
interface method. Our testing shows that this all works perfectly
well through older programs that are using this project as a COM
object, but when accessed as a .NET class library, only three of the
four objects are loaded properly - attempting to create the dispatch
for the fourth COM object causes a COM exception reporting that the
object is not registered.

I have traced the problem right down to the call to CoCreateInstanc e
and I have checked the registry, but I'm at a loss as to how to
proceed from here. Any ideas? Other than not being registered, what
can cause a "not registered" message?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Nov 17 '05 #2

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

Similar topics

0
3259
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
0
1400
by: Rex | last post by:
Hello... I have a C# app, and am trying to save a web page as a .mht file using CreateMHTMLBody. It was working a while back, but now I am getting "interface not registered" errors when calling the method. Any ideas? I have upgraded to VS 2003, and am wondering if that has something to do with it. I haven't gone thru this code in a while - so I can't say for sure that it stopped working when I "upgraded" to VS2003. I've deleted and...
3
3965
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
1715
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
1139
by: Dundealing | last post by:
I am trying to deploy an application but when I build it in Release mode, I get the message: "Could not find file '<pathname>\appname.exe' Interface not registered". It works fine in Debug mode, just not in Release mode. Any help would be most appreciated.
1
5805
by: Digitek | last post by:
Hello, I have a big problem to print an html file directly to the printer. I use an "AxSHDocVw.AxWebBrowser" object. Briefly, this is my code: AxSHDocVw.AxWebBrowser myBrowser; .... //this set of instruction prepare my document in html to be printed string HtmlFileName = "Test.html"; Object o = new Object(); o = System.Reflection.Missing.Value;
10
10050
by: morangolds | last post by:
Hi, I've been having a problem with C++ Windows Forms apps not "ending" when you close the form window. I've searched about this problem all over the place and most searches have lead me to believe that this has to do with unreleased form component events or event handlers. I'm comparatively new to .net and windows forms, in the sense that though I've been using them for over 2 years now, it's been rather sporadic. I work with...
1
5322
by: Paul W | last post by:
I attempted to find the solution and came close (http://blogs.msdn.com/robgruen/archive/2005/01/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("class","server1"));
1
1876
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
8822
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
9528
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9359
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...
1
9310
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6792
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
6072
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
4592
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
4863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.