From f837c329ec11daa402b9e07cf03fea7a62d3311c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20K=C3=BCpper?= Date: Sat, 2 Aug 2014 18:35:22 +0200 Subject: [PATCH] Webserver: Show message if there is a problem with init. --- ClientServerLib/ClientServerLib/CServer.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ClientServerLib/ClientServerLib/CServer.cs b/ClientServerLib/ClientServerLib/CServer.cs index 3403a092..2f5f0e78 100644 --- a/ClientServerLib/ClientServerLib/CServer.cs +++ b/ClientServerLib/ClientServerLib/CServer.cs @@ -20,6 +20,7 @@ using System.Diagnostics; using System.ServiceModel; using System.ServiceModel.Web; using System.Net; +using System.Windows.Forms; namespace ServerLib { @@ -159,6 +160,7 @@ namespace ServerLib catch (CommunicationException) { _Host.Abort(); + MessageBox.Show("Problem while initialization of webserver. You may use a different port (Change in config.xml)"); } } else