Bahaeddine El-Zarif Posted April 14, 2016 at 08:31 PM Posted April 14, 2016 at 08:31 PM Hello Ross, I was going to make a flight today on VATSIM, however vPilot fails to download the servers. The full message is pasted below. Windows 7 Home Premium (64 bit) SP1 and FSX SP2 Ran it as admin and normally, both without a luck to get an updated server list, which eventually provides the unhandled exception if you try to open the settings. [20:16:24] Server list download failed. Using previously-cached server list. Error: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 5.9.159.186:80 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) at System.Net.WebClient.DownloadString(Uri address) at System.Net.WebClient.DownloadString(String address) at gd.a(String A_0) at dp.a(Object A_0, DoWorkEventArgs A_1) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) Link to comment Share on other sites More sharing options...
Bradley Grafelman Posted April 14, 2016 at 08:34 PM Posted April 14, 2016 at 08:34 PM Can you successfully get to http://status.vatsim.net via a web browser? Link to comment Share on other sites More sharing options...
Bahaeddine El-Zarif Posted April 14, 2016 at 08:38 PM Author Posted April 14, 2016 at 08:38 PM Can you successfully get to http://status.vatsim.net via a web browser? It does work yes. Link to comment Share on other sites More sharing options...
Ross Carlson Posted April 14, 2016 at 09:27 PM Posted April 14, 2016 at 09:27 PM You describe it as an unhandled exception, but it looks like it is being handled. Can you confirm whether or not this is an unhandled exception? Does it crash vPilot? Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy Senior Controller, Boston Virtual ARTCC Link to comment Share on other sites More sharing options...
Bahaeddine El-Zarif Posted April 14, 2016 at 09:29 PM Author Posted April 14, 2016 at 09:29 PM You describe it as an unhandled exception, but it looks like it is being handled. Can you confirm whether or not this is an unhandled exception? Does it crash vPilot? Unhandled exception happens when you try to click on the settings after that message has appeared. But it seems to be gone now. If you click on Quit it does of course. Link to comment Share on other sites More sharing options...
Ross Carlson Posted April 14, 2016 at 09:33 PM Posted April 14, 2016 at 09:33 PM Can you send me your GlobalExceptions.txt file? That will have the details of the unhandled exception, and I should be able to handle it in code. And let me know which version of vPilot you're using. Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy Senior Controller, Boston Virtual ARTCC Link to comment Share on other sites More sharing options...
Bahaeddine El-Zarif Posted April 14, 2016 at 09:44 PM Author Posted April 14, 2016 at 09:44 PM Can you send me your GlobalExceptions.txt file? That will have the details of the unhandled exception, and I should be able to handle it in code. And let me know which version of vPilot you're using. I am using the latest version of vPilot 2.0.2.3 and I can't seem to find the file. Do you have any idea where it could be located? Link to comment Share on other sites More sharing options...
Ross Carlson Posted April 14, 2016 at 11:18 PM Posted April 14, 2016 at 11:18 PM It will be in the same folder as the vPilot.exe file. By default, that is here: %localappdata%\vPilot Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy Senior Controller, Boston Virtual ARTCC Link to comment Share on other sites More sharing options...
Bahaeddine El-Zarif Posted April 14, 2016 at 11:24 PM Author Posted April 14, 2016 at 11:24 PM There is no file with the name of GlobalExceptions.txt in that folder. However, it works now without any problems. Link to comment Share on other sites More sharing options...
Bradley Grafelman Posted April 14, 2016 at 11:42 PM Posted April 14, 2016 at 11:42 PM Ross, in case you're still interested in fixing this anyway, I was able to reproduce the unhandled exception when you attempt to open settings when vPilot has no cached servers (and was unable to retrieve them upon program start): System.ArgumentOutOfRangeException: InvalidArgument=Value of '0' is not valid for 'SelectedIndex'. Parameter name: SelectedIndex at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value) at ch.d() at ch.b() at c3.f() at dk.g() at dk..ctor(IEventBroker A_0, g A_1, ak A_2) at DynamicInjector54e2c9cebabf4e989c5e6874700d39c2(Object[] ) at Ninject.Activation.Providers.StandardProvider.Create(IContext context) at Ninject.Activation.Context.ResolveInternal(Object scope) at Ninject.Activation.Context.Resolve() at Ninject.KernelBase.<>c__DisplayCl[Mod - Happy Thoughts]13.<Resolve>b__d(IBinding binding) at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source) at Ninject.ResolutionExtensions.Get(IResolutionRoot root, Type service, IParameter[] parameters) at Ninject.Extensions.Factory.Factory.InstanceResolver.Get(Type type, String name, Func`2 constraint, IParameter[] parameters, Boolean fallback) at Ninject.Extensions.Factory.StandardInstanceProvider.GetInstance(IInstanceResolver instanceResolver, MethodInfo methodInfo, Object[] arguments) at Ninject.Extensions.Factory.FactoryInterceptor.Intercept(IInvocation invocation) at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.d5Proxy.a() at e1.c() at e1.g(Object A_0, EventArgs A_1) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) I'm using version 2.0.2.3 as well. Link to comment Share on other sites More sharing options...
Ross Carlson Posted April 15, 2016 at 01:38 AM Posted April 15, 2016 at 01:38 AM Okay, thanks ... should be an easy fix. Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy Senior Controller, Boston Virtual ARTCC Link to comment Share on other sites More sharing options...
Ross Carlson Posted April 15, 2016 at 02:41 AM Posted April 15, 2016 at 02:41 AM This is fixed in 2.0.3 which is now available via automatic update. Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy Senior Controller, Boston Virtual ARTCC Link to comment Share on other sites More sharing options...
Recommended Posts