Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space IceMaster and version 3.7.1

...


The client runs and exits without producing any output; however, in the server window, we see the "Hello World!" that is produced by the printer. To get rid of the server, we just interrupt it on the command line for now. (We will see cleaner ways to terminate a server in our discussion of Ice.Application.)

If anything goes wrong, the client will print an error message. For example, if we run the client without having first started the server, we get something like the following:

Code Block
Ice.ConnectionRefusedException
    error = 0
   at Ice.ObjectPrxHelperBase.ice_isA(String id, OptionalContext context) in C:\Users\vagrant\workspace\ice-dist\netcore\dist-utils\build\ice-netcore\builds\ice-VC141\csharp\src\Ice\Proxy.cs:line 887
   at Demo.PrinterPrxHelper.checkedCast(ObjectPrx b) in D:\3.7\ice-demos\csharp\Manual\net45\printer\Client\generated\Printer.cs:line 196
   at Client.Program.Main(String[] args) in D:\3.7\ice-demos\csharp\Manual\net45\printer\Client\Program.cs:line 18
Caused by: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it

...


Ztop

See Also

...