Changeset 2103 for trunk/sources
- Timestamp:
- 06/25/09 15:09:18 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Server.Console/3.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HiveServerConsole.cs
r2065 r2103 34 34 using System.Net; 35 35 using System.Threading; 36 using System.ServiceModel; 36 37 37 38 namespace HeuristicLab.Hive.Server.ServerConsole { … … 46 47 tbIp.Text = "10.20.53.1"; 47 48 tbPort.Text = WcfSettings.GetDefaultPort().ToString(); 48 tbUserName.Text = " test45";49 tbPwd.Text = " test";49 tbUserName.Text = "admin"; 50 tbPwd.Text = "admin"; 50 51 #endif 51 52 } … … 86 87 IPAddress ipAdress = IPAddress.Parse(tbIp.Text); 87 88 int port = int.Parse(tbPort.Text); 89 ServiceLocator.Address = tbIp.Text.Replace(" ", ""); 90 ServiceLocator.Port = tbPort.Text; 88 91 IServerConsoleFacade scf = ServiceLocator.GetServerConsoleFacade(); 89 92 try { … … 95 98 lblError.Text = resp.StatusMessage; 96 99 } 97 catch (Exception ex) { 100 catch (EndpointNotFoundException ene) { 101 lblError.Text = "No Service at this address!"; 102 } 103 catch (FaultException ex) { 98 104 //login failed 99 105 lblError.Text = "Logon failed!"; -
trunk/sources/HeuristicLab.Hive.Server.Console/3.2/ServiceLocator.cs
r1723 r2103 34 34 WcfSettings.GetBinding(), 35 35 new EndpointAddress("net.tcp://" + Address + ":" + Port + "/HiveServerConsole/ServerConsoleFacade")); 36 36 37 37 serverConsoleFacade = factory.CreateChannel(); 38 38 } 39 39 40 40 return serverConsoleFacade; 41 41 }
Note: See TracChangeset
for help on using the changeset viewer.