summaryrefslogtreecommitdiff
path: root/csharp/test/Ice/exceptions/Client.cs
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/test/Ice/exceptions/Client.cs')
-rw-r--r--csharp/test/Ice/exceptions/Client.cs14
1 files changed, 3 insertions, 11 deletions
diff --git a/csharp/test/Ice/exceptions/Client.cs b/csharp/test/Ice/exceptions/Client.cs
index fc46b2ae0d7..5974abde6e0 100644
--- a/csharp/test/Ice/exceptions/Client.cs
+++ b/csharp/test/Ice/exceptions/Client.cs
@@ -9,7 +9,6 @@
using Test;
using System;
-using System.Diagnostics;
using System.Reflection;
[assembly: CLSCompliant(true)]
@@ -36,22 +35,15 @@ public class Client
{
Ice.InitializationData initData = new Ice.InitializationData();
initData.properties = Ice.Util.createProperties(ref args);
-#if COMPACT
- //
- // When using Ice for .NET Compact Framework, we need to specify
- // the assembly so that Ice can locate classes and exceptions.
- //
- initData.properties.setProperty("Ice.FactoryAssemblies", "client");
-#endif
initData.properties.setProperty("Ice.Warn.Connections", "0");
initData.properties.setProperty("TestAdapter.Endpoints", "default -p 12010:udp");
initData.properties.setProperty("Ice.MessageSizeMax", "10"); // 10KB max
communicator = Ice.Util.initialize(ref args, initData);
status = run(args, communicator);
}
- catch(System.Exception ex)
+ catch(Exception ex)
{
- System.Console.WriteLine(ex);
+ Console.WriteLine(ex);
status = 1;
}
@@ -63,7 +55,7 @@ public class Client
}
catch(Ice.LocalException ex)
{
- System.Console.WriteLine(ex);
+ Console.WriteLine(ex);
status = 1;
}
}