Page 1 of 1

-reload-config

Posted: 2008-02-15 20:57
by Mayiko
I have created a C# program to create users, however the -reload-config does not work. I have looked through other posts on the forum and other people have the same issues, but I have not seen a solution. Any help is appreciated.

Re: -reload-config

Posted: 2008-02-15 21:06
by boco
Try /reload-config. You should take care for proper quoting as Filezilla Server.exe contains a blank.

Re: -reload-config

Posted: 2008-02-15 21:42
by Mayiko
That does not work either. I am on 0.9.25 just for more info.

Re: -reload-config

Posted: 2008-02-15 21:47
by boco
Learning the exact error message would be great. Up to this point we can only guess...

Re: -reload-config

Posted: 2008-02-15 21:54
by Mayiko
I am rather new to c#. How can I capture the error message? I have confirmed the changes are being made to the XML file. Thanks.

Re: -reload-config

Posted: 2008-02-15 22:30
by Mayiko
I do not get any errors when running my program. It completes like it should. If I go into the Admin app for the server and create a new user, all the changes my program made to FileZilla Server.xml are lost. I am guessing this is because they where not there when FileZilla added the new users, and it overwrote the file.

Re: -reload-config

Posted: 2008-02-16 00:18
by boco
OK, made changes to the XML, then executed "Filezilla Server.exe" /reload-config. As I expected, it works. My changes are reflected in the settings.

Windows requires double quotes ("), and parameters mustn't be included in the quotes.


You could use breakpoints to debug your program, there must be some error message or -value returned (like 'file not found').

Re: -reload-config

Posted: 2008-02-16 03:40
by Mayiko
Thanks for all the help.

I installed the server on a different computer and it works just fine. I am trying to access the files remotely on the actual server, so I am guessing it is actually a permissions problem. I will post my solution once I have identified the problem.

Thanks again.