DNS Errors ?

Tech-Archive recommends: Fix windows errors by optimizing your registry



We have a VB.NET 2.0 application running as a service on several servers.
All are either domain controllers or member servers. Service runs under
domain admin acct. Has been running for several years.

The apps start every 15 minutes and attempt to download from the same web
site. The apps have recently begun to time out at different times, with one
connecting after 2 tries and another taking 10 tries. The log files report:

** Source: System
** Message: The remote name could not be resolved: 'www.xxx.xxx.us'
** Stack:
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest&
request)
at System.Net.WebClient.DownloadData(Uri address)
at System.Net.WebClient.DownloadData(String address)
at CRLoader.CRLoader.GetPageHtml() in
C:\NCID\Projects\dotNet_2.0\Services\CRLoader\CRLoader.vb:line 503

** Source: System
** Message: Unable to connect to the remote server
** Stack:
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest&
request)
at System.Net.WebClient.DownloadData(Uri address)
at System.Net.WebClient.DownloadData(String address)
at CRLoader.CRLoader.GetPageHtml() in
C:\SourceCode\CRLoader_265\CRLoader.vb:line 503
** InnerException 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
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)


Our network admin says all is fine, DNS is fine. I am not convinced.

What I would like to know is where .NET get's it's DNS information. Our app
uses:

Imports System.Net.HttpWebRequest
Imports System.Net.HttpWebResponse

Dim myCred As New NetworkCredential(My.Settings.FTPuser,
My.Settings.FTPpassword)
Dim wClient As New WebClient
wClient.Credentials = myCred
Dim pageData As Byte() = wClient.DownloadData(My.Settings.FTPurl)
pageHtml = System.Text.Encoding.ASCII.GetString(pageData)



.



Relevant Pages

  • Re: GNAT.Sockets. Blocking?
    ... some servers to prevent robot or programs ... request some browsers information or they close the connection. ... end loop ... I'm kind of new to socket programming and I need some help here. ...
    (comp.lang.ada)
  • Re: DNS Errors ?
    ... domain admin acct. ... The apps start every 15 minutes and attempt to download from the same web ... ** InnerException System.Net.Sockets.SocketException: A connection attempt ... Socket s4, Socket s6, Socket& socket, IPAddress& address, ...
    (microsoft.public.dotnet.general)
  • Re: Lost data on socket - Can we start over politely?
    ... Apache uses a some kind of locking so one and only one of the servers ... As soon as a socket is connected the lock ... listen for the next connection. ... IP and port and the destination IP and port identifies the socket and ...
    (comp.lang.perl.misc)
  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation [try #3]
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... kernel socket family. ... presentation side is left to the client. ... Each connection goes to a particular "service". ...
    (Linux-Kernel)
  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... Make it possible for the client socket to be used to go to more than one ... Each connection goes to a particular "service". ...
    (Linux-Kernel)