473,398 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

DNS Errors ?

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\CRLo ader.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(Bool ean 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)

Oct 25 '07 #1
3 4279

"Bil Click" <Bi******@discussions.microsoft.comwrote in message
news:B8**********************************@microsof t.com...
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:
<snipped>

Is the Web site's IP not static?. Why do you even need a www look-up with a
DNS to even com-up with the IP? Why not use put the IP in a config file and
use the IP to the site, instead of doing a DNS look-up. You can also use the
Hostfile that will hold the www.whatever.com = xxx.xxx.xxx.xxx IP so the
machine's O/S never goes to DNS to do the look-up for the IP. The O/S will
go to the Hostfile first, before going to DNS.

Oct 26 '07 #2
That is a good thought. It is difficult to get info out of the state of NC
but I will check on that.

"Mr. Arnold" wrote:
>
"Bil Click" <Bi******@discussions.microsoft.comwrote in message
news:B8**********************************@microsof t.com...
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:

<snipped>

Is the Web site's IP not static?. Why do you even need a www look-up with a
DNS to even com-up with the IP? Why not use put the IP in a config file and
use the IP to the site, instead of doing a DNS look-up. You can also use the
Hostfile that will hold the www.whatever.com = xxx.xxx.xxx.xxx IP so the
machine's O/S never goes to DNS to do the look-up for the IP. The O/S will
go to the Hostfile first, before going to DNS.

Oct 26 '07 #3
Are you downloading
ftp://wakeftp.co.wake.nc.us/remfdata/
files?


"Bil Click" <Bi******@discussions.microsoft.comwrote in message
news:B8**********************************@microsof t.com...
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\CRLo ader.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(Bool ean 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)

Oct 27 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: mikey_boy | last post by:
Hello! Curious if anyone could give me a hand. I wrote this PHP script with makes a simple connection to a mysql database called firstdb and just pulls back the results and displays on the...
2
by: Trev | last post by:
SQL Server 2000 BE, Access 2002 FE. I want to write a stored procedure, that will among other things log errors to a table, I want to be able to report a summary of work done and errors to the...
10
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a...
0
by: doli | last post by:
Hi, I have the following piece of code which iterates through the potential errors: i =0 For Each error_item in myConn.Errors DTSPackageLog.WriteStringToLog myConn.Errors(i).Description...
4
by: johnb41 | last post by:
I have a form with a bunch of textboxes. Each text box gets validated with the ErrorProvider. I want the form to process something ONLY when all the textboxes are valid. I found a solution,...
2
by: Samuel R. Neff | last post by:
Within the past few weeks we've been getting a lot of compiler errors in two classes when no errors actually exist. The error always reports as Name '_stepResizeRelocator' is not declared. ...
24
by: pat | last post by:
Hi everyone, I've got an exam in c++ in two days and one of the past questions is as follows. Identify 6 syntax and 2 possible runtime errors in this code: class demo {
8
by: ImOk | last post by:
I just have a question about trapping and retrying errors especially file locking or database locks or duplicate key errors. Is there a way after you trap an error to retry the same line that...
0
by: clemrock | last post by:
Help w/ errors.add_to_base between controller and model Hello, I'm having trouble in routing some errors between model and controller. The errors produced in the controller...
2
by: =?Utf-8?B?UmFuZHlz?= | last post by:
This just started when I updated to sp 1 working on a APS.net, Visual Studio 2008, c# Project. When I open a project, I get tons of Errors showing in the list 300+ if I double click on them I go...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.