Fixed wsp-10061 Getting error when deleting an accepted domain
Occurs when OCS is enabled and no edge servers are defined
This commit is contained in:
parent
ca22d3927b
commit
a146b6ebd5
1 changed files with 15 additions and 12 deletions
|
@ -84,6 +84,8 @@ namespace WebsitePanel.EnterpriseServer.Code.HostedSolution
|
||||||
private static OCSEdgeServer[] GetEdgeServers(string edgeServices)
|
private static OCSEdgeServer[] GetEdgeServers(string edgeServices)
|
||||||
{
|
{
|
||||||
List<OCSEdgeServer> list = new List<OCSEdgeServer>();
|
List<OCSEdgeServer> list = new List<OCSEdgeServer>();
|
||||||
|
if (!string.IsNullOrEmpty(edgeServices))
|
||||||
|
{
|
||||||
string[] services = edgeServices.Split(';');
|
string[] services = edgeServices.Split(';');
|
||||||
foreach (string current in services)
|
foreach (string current in services)
|
||||||
{
|
{
|
||||||
|
@ -95,11 +97,12 @@ namespace WebsitePanel.EnterpriseServer.Code.HostedSolution
|
||||||
ServiceProviderProxy.Init(ocs, serviceId);
|
ServiceProviderProxy.Init(ocs, serviceId);
|
||||||
list.Add(ocs);
|
list.Add(ocs);
|
||||||
}
|
}
|
||||||
catch(Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
TaskManager.WriteError(ex);
|
TaskManager.WriteError(ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return list.ToArray();
|
return list.ToArray();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue