Webserver: Show message if there is a problem with init.
This commit is contained in:
1 parent
f43116073d
commit
f837c329ec
1 file changed
+2
@@ -20,6 +20,7 @@ using System.Diagnostics;
|
|||||||
using System.ServiceModel;
|
using System.ServiceModel;
|
||||||
using System.ServiceModel.Web;
|
using System.ServiceModel.Web;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace ServerLib
|
namespace ServerLib
|
||||||
{
|
{
|
||||||
@@ -159,6 +160,7 @@ namespace ServerLib
|
|||||||
catch (CommunicationException)
|
catch (CommunicationException)
|
||||||
{
|
{
|
||||||
_Host.Abort();
|
_Host.Abort();
|
||||||
|
MessageBox.Show("Problem while initialization of webserver. You may use a different port (Change in config.xml)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user