summaryrefslogtreecommitdiff
path: root/csharp/test/Ice/slicing/exceptions/Server.cs
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/test/Ice/slicing/exceptions/Server.cs')
-rw-r--r--csharp/test/Ice/slicing/exceptions/Server.cs16
1 files changed, 4 insertions, 12 deletions
diff --git a/csharp/test/Ice/slicing/exceptions/Server.cs b/csharp/test/Ice/slicing/exceptions/Server.cs
index 789222f8fac..bdd28e784e0 100644
--- a/csharp/test/Ice/slicing/exceptions/Server.cs
+++ b/csharp/test/Ice/slicing/exceptions/Server.cs
@@ -7,7 +7,7 @@
//
// **********************************************************************
-using System.Diagnostics;
+using System;
public class Server
{
@@ -32,20 +32,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;
}
@@ -57,7 +49,7 @@ public class Server
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}