The objective of this article is to solve the issue with StoreFront no able to create Stores.
Error Message:
Here is the error message from event log which is received when trying to create new Store:
System.UriFormatException: Invalid URI: The hostname could not be parsed.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at Citrix.DeliveryServices.Admin.Utils.PowerShell.Commands.IIS.GetWebsitesCommand.ExtractBinding(Collection`1 list)
at Citrix.DeliveryServices.Admin.Utils.PowerShell.Commands.IIS.GetWebsitesCommand.CreateSite(IISSites sites)
at Citrix.DeliveryServices.Admin.Utils.PowerShell.Commands.IIS.GetWebsitesCommand.ExtractResults(Collection`1 results)
at Citrix.DeliveryServices.PowerShell.Command.Runner.PowerShellCommandRunner.InvokeCommand(IPowerShellCommand command, Command powerShellCommand)
at Citrix.DeliveryServices.PowerShell.Command.Runner.PowerShellCommandRunner.RunCommand(IPowerShellCommand command)
at Citrix.DeliveryServices.Admin.Utils.PowerShell.IISBL.GetWebSites()
at Citrix.DeliveryServices.Admin.Presentation.Model.ServiceLocationViewModel..ctor(IUtilitiesBL utilitiesBL, IiisBL iisBL, Boolean generateDefaultValues)
at Citrix.DeliveryServices.Admin.Stores.CreateStore.CreateStoreWizardController.GetViewModel()
at Citrix.DeliveryServices.Admin.Stores.CreateStore.CreateStoreWizardController.InitializePluggableWizard()
at Citrix.DeliveryServices.Admin.Presentation.WizardDialog.WizardControllerBase.ShowWizard(String serviceName, ScopeNodeBase scopeNode, String caption)