The remote server returned an error: (500) Syntax error, command unrecognized.
When I try to get the size of a file, The code matches what I found on the net and I also download a class with this function in it and I still get the same error. This has been driving me nuts for days now, I can't find any thing else on the matter on the net!
here is the code:
Dim u As New System.Uri("ftp://192.168.0.33/logo.ycb")
Dim FTPclient2 As System.Net.FtpWebRequest = CType(System.Net.FtpWebRequest.Create(u), System.Net.FtpWebRequest)
FTPclient2.Credentials = New System.Net.NetworkCredential(mLogin, mPassword)
In that case, you'll have to find a third party FTP client library that supports what you want it to do with the server that you're trying to connect to. I don't know of any myself, but a little Googling for ".net ftp client library" might come up with something.
Not sure if this would help, but I don't like your FTPclient2.UseBinary = False,
I tend to always use binary mode for FTP, avoiding a lot of problems.
Luc Pattyn [Forum Guidelines][My Articles] This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
..hi is me again..ya..i know it is weird and wrong in this code..i really no any idea that write function in sql statement...i only thing i think was i show time and date in textbox..then date and time in text box will insert in to database..in logintable..the time data type i change to text box...this method can work??i really have no idea how to add function in database.."...thanks for the reply..
The TextBox doesn't store the date/time in the database, your code does. A TextBox just displays the String equivilent of the value of a variable. You should NOT be storing dates and times in your database as Strings.
If I had a dollar for everytime I've answered this guy, I'd have his annual salary.
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
I have been trying to use click once deployment to deploy a 3 tire .net widows forms application. All seams to work fine apart from one very important aspect. As this application use Nhibernate for all database tasks, one of the Nhibernate configuration files is not being copied across. I have tried copying this file in both the configuration and resource folder and although this will include the folder and file in the deployment and copy the folder across with the configuration file in the folder, however, the application fails, as the application can not locate the configuration file.
The question is, can you copy none compliable files and include them in the deployment that when installed the file in question will be located with the application executable and assembly files?
Dim strSrc As String = "a9837498393874b8374683746386a8279323879b92837"<br />
Dim strDelim As String = "ab"<br />
Dim arrStrItem As String()<br />
arrStrItem = strSrc.Split(strDelim.ToCharArray)<br />
Ask not whether it is useful. Ask what it is useful for.