Publishing project on GS using FileBasedProject.PublishProject

Hi,

I'm having problems with publishing projects on a GS server using FileBasedProject.PublishProject().

- If I use windows authentication (useWindowsAuthentication=true), then I get an ArgumentException (it says userName is null), regardless if I provide a username+password or not (the same account works e.g. on the web interface)

- If I use SDL authentication with an SDL account, the upload also fails (PublishProjectResult.Status=Failed). It contains two messages:

-- a warning: "References to file-based translation memories  are not published to the server. To share TMs, use server-based TMs."

-- and an error: "Failed to publish the project." => The Exception field is empty.

Can you please help me what the reason could be for these?

Thanks in advance,

Tamas