I could not use it in window service by c# (wodFTPServer)
I try to place the wodFTPServer component into my window service project, but it is a ActiveX component, it can't be initialized. How do I proccess it.
Waiting for your help.
I try to place the wodFTPServer component into my window service project, but it is a ActiveX component, it can't be initialized. How do I proccess it.
Waiting for your help.
by wodDamir , (5900 days ago) @ yinpengxiang
Hi,
Why don't you try using COM (.dll) instead?
Just add it as reference (Add Reference->Browse->System32->wodFtpd.dll), then initialize and declare the object by doing this:
[code]private wodFTPDComLib.wodFTPDComClass ftpd1 = new wodFTPDComLib.wodFTPDComClass();[/code]
Can you try something like that?
Regards,
Damba
by yinpengxiang , (5900 days ago) @ wodDamir
Thks, It is my careless when I reading the help doc. I didn't take notice of it.
I have resolved it, thanks again.
I go on my testing.
by yinpengxiang , (5899 days ago) @ yinpengxiang
Hi,
I have the another question when I using the clientFTP component(FtpDLX) for the encoding, My project is a multi-language project, but I can't recive the Asia(like chinese language=Gb2312 character)correctly. I try to encode it, but I'm failed.
How can I do? thank you.
regards,
shareach
by wodDamir , (5899 days ago) @ yinpengxiang
Shareach,
How exactly do you display directory listing?
Can you please try using DirItems collection and UnicodeName property?
I tried this on my side, and chinese names were displayed correctly.
Regards,
Damba
by yinpengxiang , (5899 days ago) @ wodDamir
Thanks for replay
I try to use the DirItems in DoneEvent follow the help doc:
In order to access this property and return list of the directory, you must call ListDir method first - so wodFtpDLX.NET can retrieve directory listing from the server. Once ListDir is called, and Done is fired - you can access this property.
I can't read the chinese, but the value of DirItems offen is empty, I can't find the reson.
I can't find the UnicodeName property, is it my compoent too old?
regards,
shareach
by wodDamir , (5899 days ago) @ yinpengxiang
Shareach,
What version of the component do you use?
If ListItems event fired, does FileInfo parameter return the result?
Regards,
Damba
by yinpengxiang , (5899 days ago) @ wodDamir
Hi,
At first I used wodFtpDLX.net component but wodFtpDLX, now I have changed to the Com component --- wodFtpDLX; It has not the chinese problem; thanks.
but I found a problem of ftp.RemotePath property, the following is my code, if have no the following code the ftp.RemotePath property value maybe /s/../s/a/.. , so has any other way I can get the real path like /s but /s/../s/a/.. .
My code:
string sRemote = ;
List<string> folderList = new List<string>();
string[] folders = ftp.RemotePath.Split('/');
for (int i = folders.Length - 1; i >= 0; )
{
if (folders == )
{
}
else if (folders == .. )
{
i--;
}
else
{
folderList.Add(folders);
}
i--;
}
for (int j = folderList.Count - 1; j >= 0; j--)
{
sRemote = sRemote + / + folderList[j];
}
if (sRemote == )
{
ftp.RemotePath = / ;
}
else
{
ftp.RemotePath = sRemote;
}
thanks
by wodDamir , (5899 days ago) @ yinpengxiang
Shareach,
I'm not really sure what exactly you are trying to do. When you connect to server, the component will automatically fill RemotePath property to user's home directory.
That means that you can check where server placed you immediately after you are connected to server.
Just remember that you always need to provide full absolute paths to component. Not the relateive paths.
Maybe I misunderstood your question? If you can you please explain?
Regards,
Damba
by yinpengxiang , (5898 days ago) @ wodDamir
My step:
1.I login to the server;
2.I used the command ftpClient.ListDir( / ) ;
3.I used the command ftpClient.ListDir( /s ) enter a sub-folder in FTPServer named s ;
4.I used the command ftpClient.ListDir( /s/.. ) to back to the parent folder / , the RemotePath will become /s/.. but not the / ;
so every time I execute the code to change /s/.. to / , it is all.
I understand what you said, you let me use the ftpClient.ListDir( / ) instead of the ftpClient.ListDir( /s/.. ) to go to parent folder. thanks, I want to know have any way I can read the / but /s/.. when I used the command ftpClient.ListDir( /s/.. ) .
This Com component is good.
thanks,
shareach
by wodDamir , (5898 days ago) @ yinpengxiang
Shareach,
Unfortunately, you can't do a ListDir(/s/.. ). This would in that case present relative path.
Instead you should do ListDir(/) as you already do.
Regards,
Damba
...wodFtpDlx was exactly what I needed, it worked, and it was priced right...
Congratulations on an excellent product and first rate support!
Your .NET components allow us to blend .NET technology seamlessly with secure communication, and with excellent technical support.
...with a minimum of effort as the DLL interface was written with such simplicity...
May I say how nice it is to work with components so complete and self-explanatory that using them in my application is as instinctive as though I wrote them myself?
We have recently completed a large 1200+ location project where reliable Telnet and SSH connectivity was required. wodSSH worked flawlessly and allowed our staff to complete our project ontime and within budget.
Thanks! We love your software and your great support!
Just thought you'd like to know that my gateway app with your SMTP Server component held the line against a DDOS attack today...
Congratulations on an excellent product and first rate support!
...with a minimum of effort as the DLL interface was written with such simplicity...