Archived
This forum has been archived. Please start a new discussion on GitHub.
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("scmRepository"));
factory.loginCommunicator(communicator);
scmFactory.loginCommunicator(communicator);
_adapter.activate();
IceBox.ServiceManager.Endpoints=tcp -p 12345
IceBox.Service.scmRepository=SCMRepositoryDaemon.dll: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
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("scmRepository"));
factory.loginCommunicator(communicator);
scmFactory.loginCommunicator(communicator);
_adapter.activate();
IceBox.ServiceManager.Endpoints=tcp -p 12345
IceBox.Service.scmRepository=SCMRepositoryDaemon.dll: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
0
Comments
-
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:tkrieger wrote: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.0 -
Yes solved the problem
Hi
i now see the mistake....now the icebox servers listens and everything works fine ... thanks!0