diff options
Diffstat (limited to 'csharp/test/Ice/objects/Server.cs')
-rw-r--r-- | csharp/test/Ice/objects/Server.cs | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/csharp/test/Ice/objects/Server.cs b/csharp/test/Ice/objects/Server.cs index 0376c3eb848..494f9c300d1 100644 --- a/csharp/test/Ice/objects/Server.cs +++ b/csharp/test/Ice/objects/Server.cs @@ -62,20 +62,12 @@ public class Server try { Ice.InitializationData data = new Ice.InitializationData(); -#if COMPACT - // - // When using Ice for .NET Compact Framework, we need to specify - // the assembly so that Ice can locate classes and exceptions. - // - data.properties = Ice.Util.createProperties(); - data.properties.setProperty("Ice.FactoryAssemblies", "server"); -#endif communicator = Ice.Util.initialize(ref args, data); status = run(args, communicator); } - catch(System.Exception ex) + catch(Exception ex) { - System.Console.Error.WriteLine(ex); + Console.Error.WriteLine(ex); status = 1; } @@ -87,7 +79,7 @@ public class Server } catch(Ice.LocalException ex) { - System.Console.Error.WriteLine(ex); + Console.Error.WriteLine(ex); status = 1; } } |