G
Guest
THE FOLLOWING CODE:
Dim strUpLoadFile As String
Dim siteUri As New Uri("ftp://wxyz.com/UpLdTest.zip")
strUpLoadFile = "C:\Trash\UpLdTest.zip"
My.Computer.Network.UploadFile(strUpLoadFile, siteUri, "johndoe", "abcdefg",
1000)
PRODUCES THIS ERROR:
Unable to cast object of type 'System.String' to type
'System.Net.ICredentials'.
THE ERROR POINTS TO THE USERNAME PARAMATER AS THE SOURCE OF THE ERROR. I'M
GUESSING THE PASSWORD PARAMETER WOULD PRODUCE AN ERROR ALSO.
WHAT IS THE CORRECT CODE TO UTILIZE My.Comp....work.UploadFile?
Thanks for your help.
Dim strUpLoadFile As String
Dim siteUri As New Uri("ftp://wxyz.com/UpLdTest.zip")
strUpLoadFile = "C:\Trash\UpLdTest.zip"
My.Computer.Network.UploadFile(strUpLoadFile, siteUri, "johndoe", "abcdefg",
1000)
PRODUCES THIS ERROR:
Unable to cast object of type 'System.String' to type
'System.Net.ICredentials'.
THE ERROR POINTS TO THE USERNAME PARAMATER AS THE SOURCE OF THE ERROR. I'M
GUESSING THE PASSWORD PARAMETER WOULD PRODUCE AN ERROR ALSO.
WHAT IS THE CORRECT CODE TO UTILIZE My.Comp....work.UploadFile?
Thanks for your help.