Jan Grenov
Member
- Joined
- Jun 30, 2012
- Messages
- 6
- Programming Experience
- 3-5
Hi
I am developing an add-in for Autodesk Revit and I need to create a download module where users can download Revit Family files from an ftp server.
This is new land to me, so I need to learn more about handling this.
I tried to connect this way
Dim ftpRequest As FtpWebRequest = WebRequest.Create("ftp://ipnumber/Plug-in/" & "test.txt")
ftpRequest.Method = Net.WebRequestMethods.Ftp.DownloadFile
ftpRequest.Credentials = New Net.NetworkCredential("myusername", "mypassword") Dim response As FtpWebResponse = DirectCast(ftpRequest.GetResponse(), FtpWebResponse)
Dim responseStream As Stream = response.GetResponseStream()
Dim reader As New StreamReader(responseStream)
That worked on my test server, but it does not Work on the real server. I get a timeout error!
I have access to this information:
FTP server IP-address
Port number
User ID
Password
Now my question: Any hints on what may be the cause and where to find tutorials?
Regards
Jan Grenov
I am developing an add-in for Autodesk Revit and I need to create a download module where users can download Revit Family files from an ftp server.
This is new land to me, so I need to learn more about handling this.
I tried to connect this way
Dim ftpRequest As FtpWebRequest = WebRequest.Create("ftp://ipnumber/Plug-in/" & "test.txt")
ftpRequest.Method = Net.WebRequestMethods.Ftp.DownloadFile
ftpRequest.Credentials = New Net.NetworkCredential("myusername", "mypassword") Dim response As FtpWebResponse = DirectCast(ftpRequest.GetResponse(), FtpWebResponse)
Dim responseStream As Stream = response.GetResponseStream()
Dim reader As New StreamReader(responseStream)
That worked on my test server, but it does not Work on the real server. I get a timeout error!
I have access to this information:
FTP server IP-address
Port number
User ID
Password
Now my question: Any hints on what may be the cause and where to find tutorials?
Regards
Jan Grenov
Last edited: