I do /insim=29999 just after running lfs.
LFS_External throws exception with Message = "The InSim Interface was unable to connect to the remote InSim host." on initialization. No further stacktrace.
InSimDotNet throws exception with more details:
InSimDotNet.InSimException was unhandled
HResult=-2146233088
Message=Could not connect to InSim
Source=InSimDotNet
StackTrace:
w InSimDotNet.InSim.Initialize(InSimSettings settings) w c:\Users\Alex\Documents\Visual Studio 11\Projects\InSimDotNet\InSimDotNet\InSim.cs:wiersz 195
w LfsHelper.Controller.LfsConnection.get_InSim() w D:\Projekty_firmowe\LfsHelper\Controller\LfsConnection.cs:wiersz 56
w LfsHelper.MainWindow.Window_Loaded(Object sender, RoutedEventArgs e) w D:\Projekty_firmowe\LfsHelper\MainWindow.xaml.cs:wiersz 41
w System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
w System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
w System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
w System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
w System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
w System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
w MS.Internal.LoadedOrUnloadedOperation.DoWork()
w System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
w System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
w System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
w System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
w System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
w System.Windows.Interop.HwndTarget.OnResize()
w System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
w System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
w MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
w MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
w System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
w MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
w System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
w MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
InnerException: System.Net.Sockets.SocketException
HResult=-2147467259
Message=Nie można nawiązać połączenia, ponieważ komputer docelowy aktywnie go odmawia 127.0.0.1:29999
Source=System
ErrorCode=10061
NativeErrorCode=10061
StackTrace:
w System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port)
w System.Net.Sockets.Socket.Connect(String host, Int32 port)
w InSimDotNet.TcpSocket.Connect(String host, Int32 port) w c:\Users\Alex\Documents\Visual Studio 11\Projects\InSimDotNet\InSimDotNet\TcpSocket.cs:wiersz 99
w InSimDotNet.InSim.Initialize(InSimSettings settings) w c:\Users\Alex\Documents\Visual Studio 11\Projects\InSimDotNet\InSimDotNet\InSim.cs:wiersz 174
InnerException:
the "Nie można nawiązać połączenia, ponieważ komputer docelowy aktywnie go odmawia 127.0.0.1:29999" means "Cannot connect because the target machine actively refuses it 127.0.0.1:29999" so there is something blocking it still