Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.

Server list failed


Bahaeddine El-Zarif
 Share

Recommended Posts

Bahaeddine El-Zarif
Posted
Posted

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

Bradley Grafelman
Posted
Posted

Can you successfully get to http://status.vatsim.net via a web browser?

Link to comment
Share on other sites

Bahaeddine El-Zarif
Posted
Posted
Can you successfully get to http://status.vatsim.net via a web browser?

 

It does work yes.

Link to comment
Share on other sites

Ross Carlson
Posted
Posted

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

Bahaeddine El-Zarif
Posted
Posted
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

Ross Carlson
Posted
Posted

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

Bahaeddine El-Zarif
Posted
Posted
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

Ross Carlson
Posted
Posted

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

Bahaeddine El-Zarif
Posted
Posted

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

Bradley Grafelman
Posted
Posted

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

Ross Carlson
Posted
Posted

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

Ross Carlson
Posted
Posted

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

 Share