Bring back WCF address denied message

This commit is contained in:
JustArchi
2016-11-15 15:43:34 +01:00
parent f4a3b43704
commit adbabb5264

View File

@@ -104,6 +104,9 @@ namespace ArchiSteamFarm {
ServiceHost.AddServiceEndpoint(typeof(IWCF), new BasicHttpBinding(), string.Empty);
ServiceHost.Open();
} catch (AddressAccessDeniedException) {
ASF.ArchiLogger.LogGenericError("WCF service could not be started because of AddressAccessDeniedException!");
ASF.ArchiLogger.LogGenericWarning("If you want to use WCF service provided by ASF, consider starting ASF as administrator, or giving proper permissions!");
} catch (Exception e) {
ASF.ArchiLogger.LogGenericException(e);
return;