Solved

DCOM Advise Error

Posted on 2002-07-02
5
1,017 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

617 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