473,386 Members | 1,630 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,386 software developers and data experts.

FTPWebRequest ERROR Help

1
Getting ERROR: The remote name could not be resolved? why?
************************************************** ************************************

Try
Dim reqUri As String

reqUri = "ftp://domeinname.com"

Dim req As FtpWebRequest = CType(WebRequest.Create(reqUri), FtpWebRequest)

req.Credentials = New NetworkCredential("u*****", "*****")

req = CType(WebRequest.Create(reqUri), FtpWebRequest)

req.Method = WebRequestMethods.Ftp.DeleteFile

Dim resp As FtpWebResponse = CType(req.GetResponse, FtpWebResponse)

Catch ex As WebException
If ex.Status = Net.WebExceptionStatus.NameResolutionFailure Then
Master.setBevestigingTekst("fout", ex.Message )

End If
End Try

************************************************** *******************

somebody help please?
Oct 22 '07 #1
1 1744
JamieHowarth0
533 Expert 512MB
Hi rupan,

Have you tried using an FTP client (such as Internet Explorer or WS_FTP) to connect to the site to ensure you have the address correct? My first thoughts are some kind of typo within your code (for example, try using ftp://ftp.domeinname.com).

Failing that, if you could explain more about the code you are using (as it looks like .NET coupled with a custom class, but I am not entirely sure) then it would help us to establish your problem and find further solution.

Best regards,

medicineworker
Oct 22 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: SevDer | last post by:
Hi, I am trying to write a simple application which copies the predefined files (hardcoded in the code) to my ftp server. I couldn't make it working. I don't want to use any 3rd party...
0
by: Kevin Spencer | last post by:
Hi all, I am working on a service that uploads METAR weather information to the National Weather Service FTP site. The service I'm authoring is hosted on a Windows 200 server, and the NWS FTP...
0
by: Alexis | last post by:
Hello, I am trying to upload a file to an ftp server using the FtpWebRequest class, but I get the following error. The requested URI is invalid for this FTP command. I do can upload the file...
0
by: Håvard Olerud Eriksen | last post by:
I've got a small utility here that downloads the contents of some directory. Now, the weird thing is that sometimes I get an exception when I start the download of a new file. The exception I get...
0
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
0
by: blearyeye | last post by:
The following code is giving me an error 503, with the message "The remote server returned an error: (503) Bad sequence of commands." The StatusDescription is "503 You are already logged in!\r\n". ...
10
by: rahulvachhani | last post by:
Hello, I am trying to upload a file to a ftp site. I have my code pasted below. FtpWebRequest reqFTP; reqFTP = (FtpWebRequest)FtpWebRequest.CreateDefault(new...
9
by: Waldy | last post by:
Hi there, I have written a service in VS2005 that downloads files from an FTP site processes them and then deletes the files if successfully processed. It all works fine when run in our test lab...
6
by: Patrick.Simons | last post by:
I try to connect a FTPWebRequest through Proxy and VPN to a remote FTP- server. Sometimes it works sometimes not. When my VB.Net-App (2005) returns the error on the GetResponse-Method, I'll try to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.