I have a unix server SunOs 5.8. I can ping this server by using "ping ipaddress" or "ping hostname" or "ping hostname.company.com". I can also ftp in and out of the this machine from dos or other unix servers .
Due to a problem with Windows XP SP2 and Checkpoint VPN we can no longer use NFS (blue screen of death).
I'm trying to replace my NFS code with an FtpWebRequest to ftp files from Windows to Unix in my ASP.NET app. I've tried every sample code on earth but can't get it to work.
In the code below I'm getting an error regarding the URI. Also the .METHOD statement does not accept any value that I give "GET, PUT, LISTDIRECTORY" etc. What am I doing wrong? (PS - I already wrote batch files to accomplish this and scrapped that idea because it didn't seem clean enough. I also don't want to pay for a component to accomplish something that should be pretty standard and simple in ASP.NET...should be, but not for me).
Dim req As System.Net.FtpWebRequest
Dim resp As System.Net.FtpWebResponse
Dim data As System.IO.Stream
Dim result As String
Dim creds As New System.Net.NetworkCredenti
req = DirectCast(System.Net.WebR
.Credentials = creds
.UseBinary = True
.KeepAlive = True
.Method = "GET"
resp = .GetResponse
Data = resp.GetResponseStream
result = resp.StatusCode