NuGet.Exe - unable to connect the remote server

Topics: General
Aug 2, 2012 at 6:27 AM
Edited Aug 2, 2012 at 6:28 AM

Hi Team,

Yesterday when I  was trying to create the specification out of dll using NuGet.exe. I'm getting the below error.

Unhandled Exception: System.Net.WebException: Unable to connect to the remote se
rver ---> System.Net.Sockets.SocketException: A connection attempt failed becaus
e the connected party did not properly respond after a period of time, or establ
ished connection failed because connected host has failed to respond
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddre
ss socketAddress)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Sock
et s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state,
IAsyncResult asyncResult, Int32 timeout, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetResponse()
   at System.Data.Services.Client.QueryResult.Execute()
   at System.Data.Services.Client.DataServiceRequest.Execute[TElement](DataServi
ceContext context, QueryComponents queryComponents)
   at System.Data.Services.Client.DataServiceQuery`1.Execute()
   at System.Data.Services.Client.DataServiceQuery`1.GetEnumerator()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__0.MoveNext()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   at Bootstrapper.Program.Main(String[] args)

Today when I tried again it's asking username and password.

OS : Windows 7  IDE: VS 2010 Ultimate.

I'm running Nuget.exe behind the corporate firewall.

Can you please help on this?

Aug 2, 2012 at 5:05 PM

Could you replace the executable you have with the one from - ?

Aug 3, 2012 at 5:52 AM

Thank you so much for your swift response. Its working now !!

I have downloaded Nuget,exe from the below link as mentioned in the site and faced the problem. It would be grateful if you can update the below link, so that people won't face the same issue in future.