Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8150747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:09:18+00:00 2026-06-06T15:09:18+00:00

I am writing a C# client for a Corba server and I am using

  • 0

I am writing a C# client for a Corba server and I am using IIOP.NET, going by the example on the following page: http://iiop-net.sourceforge.net/rmiAdderDNClient.html

I have gotten this far without errors:

// Register channel
IiopClientChannel channel = new IiopClientChannel();
ChannelServices.RegisterChannel(channel, false);

// Access COS naming context
CorbaInit init = CorbaInit.GetInit();
NamingContext context = init.GetNameService(host, port);

The variable “host” is a string with the computer name of the server and “port” is an int representing the port number. The values for these are currently used by other systems to connect to the server so I can confirm that they are correct.

However, trying to connect to the trader service yields an exception in runtime. Here is the code I use to do that:

// Looking up VB Trader
NameComponent[] names = new NameComponent[] { new NameComponent("TraderInterface") };
object obj = context.resolve(names);

And here is the error message I’m getting:

“CORBA system exception : omg.org.CORBA.INV_OBJREF, completed: Completed_No minor: 10102.”

This seems to suggest an invalid object reference, but what does that mean? Is the string I am passing to the resolve method incorrectly formatted? I have tried many different names for this service as used in other systems, but I always get the same error, which makes me wonder whether I am even interpreting it correctly.

Incidentally, in my desperation, I have also attempted to obtain an object reference from the IOR, but this again throws a different exception (namely omg.org.CORBA.ORB_package.InvalidName).

OrbServices orb = OrbServices.GetSingleton();
object obj = orb.resolve_initial_references(traderIOR);

Any advice is welcome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T15:09:20+00:00Added an answer on June 6, 2026 at 3:09 pm

    I was never able to reach my server with any of the above methods, however the following code is what finally got the communication working:

    Hashtable props = new Hashtable();
    props[IiopChannel.BIDIR_KEY] = true;
    props[IiopServerChannel.PORT_KEY] = port;
    
    // register corba services
    IiopChannel channel = new IiopChannel(props);
    ChannelServices.RegisterChannel(channel, false);
    
    MyInterface obj = (MyInterface)RemotingServices.Connect(typeof(MyInterface), ior);
    

    I’m not entirely sure why I had to use this (seemingly) unconventional way. Perhaps it is due to the lack of a naming service running on the server. Whatever the cause, I hope this helps somebody out there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a client that talks to a remote server over HTTP. I would
I am writing a client/server program using C sockets. I am specifying that the
I am writing a client-server application using TCP Sockets. The server is written in
I'm writing both client and server code using WCF, where I need to know
I am writing a client-server application using sockets in C++. The protocol for communications
I am writing oauth client in javascript using the page, after user enters credentials
I am writing a client side HTML page with jQuery that calls web services
I`m writing client-server app for windows using WinSock and I have class for server.
I'm writing a client-server app using BSD sockets. It needs to run in the
Writing a client / server program and previously was using calls like this: TcpListener.AcceptTcpClient()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.