473,394 Members | 1,737 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,394 software developers and data experts.

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 CoCreateInstance
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 1282
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****@excite-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 CoCreateInstance
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
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....
0
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...
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: 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: 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...
1
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...
10
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...
1
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...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
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,...
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...

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.