Results 1 to 3 of 3

Thread: IceBox with C#

  1. #1
    tkrieger is offline Registered User
    Name: Thomas Krieger
    Organization: Analytic Pipe GmbH
    Project: BISS
    Join Date
    May 2006
    Location
    Germany
    Posts
    17

    IceBox with C#

    Hi,

    i try to go my first steps with the icebox and c#. But i won't work for me, so hope someone can help me here.

    I compile an dll with the class where the extended IceBox.Service Class is implemented. This dll comes also with the config file:

    where the start method appears like this:

    _adapter = communicator.createObjectAdapter(name);
    _adapter.add(new SCMRespositoryIcer(),Ice.Util.stringToIdentity("sc mRepository"));
    factory.loginCommunicator(communicator);
    scmFactory.loginCommunicator(communicator);
    _adapter.activate();


    IceBox.ServiceManager.Endpoints=tcp -p 12345
    IceBox.Service.scmRepository=SCMRepositoryDaemon.d ll:RepositoryDaemon
    scmRepository.EndPoint=tcp -p 11001

    when i start the icebox with "mono /usr/bin/iceboxnet.exe --Ice.Config=icebox.config" no message appears and it seems to run.

    So i tried to run an client which creates an proxy:

    url = string.Format("scmRepository:tcp -h {0} -p {1}",host,port);
    iceProxy = SCMRepositoryIcePrxHelper.checkedCast(communicator .stringToProxy(url));

    but here i get an Ice.ConnectionRefused error!

    i looked at the parameters host and port but they are correct. so i don't know what my mistake is.

    Hope someone can help me.

    Thanks in advance

    Thomas
    ------------------------------------------
    Thomas Krieger
    Analytic Pipe GmbH
    http://www.analyticpipe.de

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    It looks like your service isn't listening the expected port. You could start the IceBox server with --Ice.Trace.Network=2 to see on which network interface(s) and port it's listening.

    Also, your configuration file contains the following property:

    Quote Originally Posted by tkrieger
    scmRepository.EndPoint=tcp -p 11001
    This should be "scmRepository.Endpoint=tcp -p 11001" instead ("Endpoint instead of "EndPoint"). Most likely your service isn't listening on port 11001 because of this typo.

    Let us know if this doesn't solve your problem!

    Cheers,
    Benoit.

  3. #3
    tkrieger is offline Registered User
    Name: Thomas Krieger
    Organization: Analytic Pipe GmbH
    Project: BISS
    Join Date
    May 2006
    Location
    Germany
    Posts
    17

    Yes solved the problem

    Hi

    i now see the mistake....now the icebox servers listens and everything works fine ... thanks!
    ------------------------------------------
    Thomas Krieger
    Analytic Pipe GmbH
    http://www.analyticpipe.de

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •