472,805 Members | 777 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

occasional "The requested name is valid, but no data of the requested type was found"

Hello,
Could someone here please explain the reason for the error in the
subject (the full error below)
I dont get this everytime and i've never gotten while debugging. The
code (also below)
which causes this is part of an ftp application (the guts of which i
got from some shared code)
that is scheduled to execute nightly.
Sometimes it will run for a few nights in a row without any problems
other times it just fails with that error. Please help.

Full error:

System.Net.Sockets.SocketException: The requested name is valid, but
no data of the requested type was found at
System.Net.Dns.GetHostByName(String hostName) at
System.Net.Dns.Resolve(String hostName) at
SenecaFTP.FtpClient.Login()

Offending code:

this.clientSocket = new
Socket( AddressFamily.InterNetwork,SocketType.Stream,
ProtocolType.Tcp );
addr = Dns.Resolve(this.server).AddressList[0]; -- failure point.

Jun 25 '07 #1
3 30318
Hi,

It seems an error with the Resolver. I have never seen this error before (I
do have several similar nightly jobs).

Why dont you do a search in a networking NG ;it does not have to be of .NET
I bet that this error comes from the unmanaged side.

"martin" <ma*****@senecadata.comwrote in message
news:11**********************@n2g2000hse.googlegro ups.com...
Hello,
Could someone here please explain the reason for the error in the
subject (the full error below)
I dont get this everytime and i've never gotten while debugging. The
code (also below)
which causes this is part of an ftp application (the guts of which i
got from some shared code)
that is scheduled to execute nightly.
Sometimes it will run for a few nights in a row without any problems
other times it just fails with that error. Please help.

Full error:

System.Net.Sockets.SocketException: The requested name is valid, but
no data of the requested type was found at
System.Net.Dns.GetHostByName(String hostName) at
System.Net.Dns.Resolve(String hostName) at
SenecaFTP.FtpClient.Login()

Offending code:

this.clientSocket = new
Socket( AddressFamily.InterNetwork,SocketType.Stream,
ProtocolType.Tcp );
addr = Dns.Resolve(this.server).AddressList[0]; -- failure point.

Jun 25 '07 #2
martin wrote:
Hello,
Could someone here please explain the reason for the error in the
subject (the full error below)
I dont get this everytime and i've never gotten while debugging. The
code (also below)
which causes this is part of an ftp application (the guts of which i
got from some shared code)
that is scheduled to execute nightly.
Sometimes it will run for a few nights in a row without any problems
other times it just fails with that error. Please help.

Full error:

System.Net.Sockets.SocketException: The requested name is valid, but
no data of the requested type was found at
System.Net.Dns.GetHostByName(String hostName) at
System.Net.Dns.Resolve(String hostName) at
SenecaFTP.FtpClient.Login()

Offending code:

this.clientSocket = new
Socket( AddressFamily.InterNetwork,SocketType.Stream,
ProtocolType.Tcp );
addr = Dns.Resolve(this.server).AddressList[0]; -- failure point.
Hi,

The error (to me) suggests a DNS resolution problem, i.e. the DNS server was
contacted successfully, but was unable to provide any DNS records for the
host, perhaps because the DNS server is not authoritative for the domain
and no cache records exist, or perhaps an inherent problem with the DNS
server itself.

If you can, try changing your DNS server to something else and run the tests
again.

--
Tom Spink
University of Edinburgh
Jun 25 '07 #3
"martin" <ma*****@senecadata.comschrieb im Newsbeitrag
news:11**********************@n2g2000hse.googlegro ups.com...
Hello,
Could someone here please explain the reason for the error in the
subject (the full error below)
<snip>
Offending code:

this.clientSocket = new
Socket( AddressFamily.InterNetwork,SocketType.Stream,
ProtocolType.Tcp );
addr = Dns.Resolve(this.server).AddressList[0]; -- failure point.
"The requested name is valid,"
I guess this means, the given name is a syntactically correct DNS-name.

"but no data of the requested type was found."
The name couldn't be resolved, because there is no entry in the responsible
DNS-server

Since I guess the server name is configured, and so it is unlikely, that it
can't be resolved occasionally, maybe it is a problem connecting the
DNS-Server.

Christof

Jun 26 '07 #4

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

Similar topics

1
by: EdDev | last post by:
beginning with Windows XP SP2 I got a problem concerning Safearrays in my Software. Using Windows XP SP1 everything works fine. I call via COM another application to start the communication via...
1
by: Robin Dindayal | last post by:
Does anyone know how I can print a fully rendered .aspx to the server's printer? I know that, if I wanted to print to the client's printer it would be easy (ie. use javascript's window.print()). ...
1
by: emon.haider | last post by:
Hi guys, I just made a web application using ASP.Net and C#. The application compiles and works fine from my workstation, but after I uploaded it to my webserver, I am getting an error of "the...
1
by: acool | last post by:
I just created a simple Windows Service in VB.NET. I right clicked on the component and added the installer, installed via InstallUtil.exe all went well until i try to do a net start and then I...
2
by: Richard Bysouth | last post by:
Hi When attempting to view inherited forms in design mode I have been getting the message "The path is not of a legal form" and am unable to view the designer. I can't seem to find any...
22
by: kkk1979 | last post by:
I am not an experienced programmer. I am getting an error as "method or data member not found" when i entered the following code in buttonclick procedure of the toolbar. select case button.key...
5
by: Eric Davidson | last post by:
I keep getting the folowing error message in my db2diag.log every couple of seconds, and I can not find any information on this on the DB2 website or in the apr's Can anyone give me a pointer...
3
by: cmk817 | last post by:
Hi All, I'm just starting out (sort of)... and i can't even get connected to a database. We have an intranet server running CF... I'm trying to connect using dreamweaver... something funky is...
2
by: Randy | last post by:
I've got a VS 2005 VB solution I got from someone and I'm trying to get it to run in a different directory. I've got all the files in my new directory (inetpub\wwwroot\CS). When I open the...
1
by: Khalil ur Rehma | last post by:
Error "Method or Data Member not found" here is my code if any one may solve my problem. Dim conDataConnection As Connection Dim strSQL As String Dim lstSel As ListItem Set...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.