Solved

DCOM Advise Error

Posted on 2002-07-02
5
1,005 Views
Last Modified: 2008-03-17
I have an MFC executable which calls methods on a remote DCOM service.  This works fine.  When I try to set up bi-directional communications with either connection points or callbacks, the Advise method fails with error x80070776 - the object exporter specified was not found.  If I remove the linkage to other library dlls and leave just the exe, it works fine.  Security and all prep COM  calls appear fine.  I'm using standard oleautomation marshalling.
Any idea why one or more linked dlls would cause this error?
0
Comment
Question by:tcarter
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 

Expert Comment

by:nke2000
ID: 7124980
Are the dll's you are using set up for connection points?
0
 

Author Comment

by:tcarter
ID: 7125016
Only the dlls that utilize COM are set up for connection points.  Currently, the test code is embedded in CMainApp::InitInstance().  The other (non-system) dlls appear to load (implicit linkage) when I step over the line with the Advise().
0
 
LVL 86

Accepted Solution

by:
jkr earned 200 total points
ID: 7125036
Found the following:

Receiving OR_INVALID_OXID (0x80070776)
When using COM creation APIs (such as CoCreateInstance, CoCreateInstanceEx,
or CoGetClassObject) to create remote objects (objects on other machines),
incorrectly configured network settings that otherwise appear to support
file or print sharing properly may cause Distributed COM to fail with the
distinguished error, OR_INVALID_OXID (0x80070776). This is typically not a
problem with COM, but this network configuration problem that is not exposed
by other networking operations that have fall-back behavior that differs
from COM over improperly configured protocols.
This failure can occur when a machine has been configured with TCP/IP as
well as another network transport, such as IPX/SPX, or NetBeui, but the
TCP/IP configuration is improperly configured. For example, it may be
configured to be dynamically assigned an IP address using DHCP, yet a DHCP
server may not be available, so it has no IP address. The solution is to
properly configure TCP/IP networking.

(http://groups.google.com/groups?hl=de&lr=&ie=UTF-8&oe=UTF8&selm=%23ozFXB6mBHA.2432%40tkmsftngp07)
0
 

Author Comment

by:tcarter
ID: 7127577
I tracked down the problem.  One of the dlls associated with my application is named "security.dll".  The connection point Advise loads some additional system dlls including "security.dll".  Finding this name already loaded for the process, system32\security.dll and several others do not get loaded.  Renaming my dll fixed it.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7133314
hi tcarter,
I suggest that you post a message to Community Support indicating that you found the answer yourself and that you want a refund of your points but that the question deserves to be placed in the PAQ.  Please reference this Q#: Q_20318798.

Alternatively, you could give the points to jkr for that valuable bit of research that he did on your behalf.

-- Dan
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question