Summary:
This article troubleshoots an error that occurs when a user unsuccessfully attempts to install the Gateway application.
Article Sections:
Symptoms:
When a user runs the Gateway installer, the installation fails and they receive this error in their Windows Event Log:
Application: GatewayOnPrem.exe CoreCLR Version: 4.700.20.56602 .NET Core Version: 3.1.11 Description: The process was terminated due to an unhandled exception. Exception Info: System.InvalidOperationException: Dynamic port binding is not supported when binding to localhost. You must either bind to 127.0.0.1:0 or [::1]:0, or both. at Microsoft.AspNetCore.Server.Kestrel.Core.LocalhostListenOptions..ctor(Int32 port) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.ParseAddress(String address, Boolean& https) at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.Load() at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.ValidateOptions() at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken) at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken) at Microsoft.AspNetCore.Hosting.WebHost.Start() at Microsoft.AspNetCore.Hosting.WindowsServices.WebHostService.OnStart(String[] args) at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state) --- End of stack trace from previous location where exception was thrown --- at System.ServiceProcess.ServiceBase.Run(ServiceBase[] services) at System.ServiceProcess.ServiceBase.Run(ServiceBase service) at GatewayOnPrem.WebHostServiceExtensions.RunAsCustomService(IWebHost host) in F:\TeamCity\BuildAgent\work\f661050a0157bc19\GatewayOnPrem\Program.cs:line 119 at GatewayOnPrem.Program.Main(String[] args) in F:\TeamCity\BuildAgent\work\f661050a0157bc19\GatewayOnPrem\Program.cs:line 78
Causes:
During installation, the user entered an invalid port number for the Gateway application to use.
Resolution:
Run the installer again and select a non-zero, non-system port for the application to use.
Properties:
Cloud
Gateway