Using C# Process throws invalid password or username

Core FTP client questions and answers
Locked
skifreak
Posts: 4
Joined: Tue Feb 19, 2019 7:55 pm

Using C# Process throws invalid password or username

Post by skifreak »

Process proc = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = "c:\\program files\\coreftp\\coreftp.exe",
Arguments = " -ssh -s -u " + ConfigurationManager.AppSettings["DevCLQPDFFolder"] + dtFile.Rows[0]["fileName"].ToString() + " -p " + ConfigurationManager.AppSettings["DevExelaPDFFolder"] + dtFile.Rows[0]["fileName"].ToString(),
UseShellExecute = false,
UserName = "user",
PasswordInClearText = "password",
RedirectStandardOutput = false,
CreateNoWindow = true,
Domain = ConfigurationManager.AppSettings["ExelaHost"]
}
};

proc.Start(); <--- error occurs here

Here is the argument
-SSH -s -u -site New_ExcelaFTP c:\\myfolder\\incoming\\myfile.pdf -p /test/incoming/Onshore/Ready/myfile.pdf
ForumAdmin
Site Admin
Posts: 987
Joined: Mon Mar 24, 2003 4:37 am

Re: Using C# Process throws invalid password or username

Post by ForumAdmin »

-SSH -s -site New_ExcelaFTP -u c:\\myfolder\\incoming\\myfile.pdf -p /test/incoming/Onshore/Ready/myfile.pdf
skifreak
Posts: 4
Joined: Tue Feb 19, 2019 7:55 pm

Re: Using C# Process throws invalid password or username

Post by skifreak »

Thanks for the post. But when I go to the site it is supposed to get the file, it is not there. I have tried to have them help me but they are clueless. I removed the username and password to use the site but still no file.

How can I tell if it is actually using -SITE?

I am using the correct site now and it is working. THANKS!
Locked