Redgate Client failing to start
mtsmith
Posts: 1 New member
in SQL Compare
2022-04-19 09:57:25.572 [INF] Starting...
2022-04-19 09:57:26.414 [ERR] Failed to start service: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.HttpListenerException: The network location cannot be reached. For information about network troubleshooting, see Windows Help
at System.Net.HttpListener.AddAllPrefixes()
at System.Net.HttpListener.Start()
at Microsoft.Owin.Host.HttpListener.OwinHttpListener.Start(HttpListener listener, Func`2 appFunc, IList`1 addresses, IDictionary`2 capabilities, Func`2 loggerFactory)
at Microsoft.Owin.Host.HttpListener.OwinServerFactory.Create(Func`2 app, IDictionary`2 properties)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create(IAppBuilder builder)
at Microsoft.Owin.Hosting.Engine.HostingEngine.Start(StartContext context)
at RedGate.Client.Plugins.Common.OwinHttpEndpoint.Start(Action`1 configFunc)
at RedGate.Client.ActivationPlugin.ActivationPlugin..ctor(IPortNumberProvider portNumberProvider, ILog logger, IDependencyContainer container)
at RedGate.Client.PluginProvider.PluginProvider.<Provide>d__5.MoveNext()
at RedGate.Client.PluginRunner.Runner.(IPluginProvider )
at RedGate.Client.PluginRunner.Runner.LoadLatestVersionsOfPlugins()
at RedGate.Client.PluginRunner.Runner.LoadLatestVersionsOfPlugins()
at ..()
at ..()
at RedGate.Client.Service.Program.<>c.()
at RedGate.Client.Service.Program..()
at ..(String[] )
2022-04-19 09:57:26.419 [ERR] Failed to start: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.HttpListenerException: The network location cannot be reached. For information about network troubleshooting, see Windows Help
at System.Net.HttpListener.AddAllPrefixes()
at System.Net.HttpListener.Start()
at Microsoft.Owin.Host.HttpListener.OwinHttpListener.Start(HttpListener listener, Func`2 appFunc, IList`1 addresses, IDictionary`2 capabilities, Func`2 loggerFactory)
at Microsoft.Owin.Host.HttpListener.OwinServerFactory.Create(Func`2 app, IDictionary`2 properties)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create(IAppBuilder builder)
at Microsoft.Owin.Hosting.Engine.HostingEngine.Start(StartContext context)
at RedGate.Client.Plugins.Common.OwinHttpEndpoint.Start(Action`1 configFunc)
at RedGate.Client.ActivationPlugin.ActivationPlugin..ctor(IPortNumberProvider portNumberProvider, ILog logger, IDependencyContainer container)
at RedGate.Client.PluginProvider.PluginProvider.<Provide>d__5.MoveNext()
at RedGate.Client.PluginRunner.Runner.(IPluginProvider )
at RedGate.Client.PluginRunner.Runner.LoadLatestVersionsOfPlugins()
at RedGate.Client.PluginRunner.Runner.LoadLatestVersionsOfPlugins()
at ..()
at ..()
at RedGate.Client.Service.Program.<>c.()
at RedGate.Client.Service.Program..()
at ..(String[] )
at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.ServiceProcess.ServiceBase.Run(ServiceBase[] services)
at RedGate.Client.Service.Program.(Func`1 )
Answers
Please run the following command from an elevated command prompt:
You will likely see "::" in the output. Setting an IP listen rule wil mean that all other IPs are blocked. this will cause the Redgate Client to stop functioning.
You can either delete the entry with:
Or you can add an additional rule for the Client service:
Either way after making the changes above please reopen the tools and try to activate the license once more.