Publish a project to Groupshare 2015 using Windows authentication

Dear Community members,

I would like to publish a project to Groupshare 2015 using Windows authentication but I always receive the following error message:

Value cannot be null.
Parameter name: username

I tried the following solutions which always returned the error message above:

newSDLProject.PublishProject(new Uri(Properties.Settings.Default.GroupShareUri), true, "user=", "password=", "/Server-based projects", null);

newSDLProject.PublishProject(new Uri(Properties.Settings.Default.GroupShareUri), true, "", "", "/Server-based projects", null);

newSDLProject.PublishProject(new Uri(Properties.Settings.Default.GroupShareUri), true, null, null, "/Server-based projects", null);

 

If use an SDL user, I can publish the project but I need to use Windows authentication.

Can anyone tell me what I am doing wrong?

Thanks in advance for your help.

Regards,

Laurent 

Parents
  • Can you please confirm that you can add a windows user from the user management? If this is ok please try to include the the domain together with the user. Something like Domain\username

    Romulus Crisan | Translation Productivity Development Manager | SDL | (twitter) @cromica_82 | (blog) http://www.romuluscrisan.com/

  • Romulus,

    I tried these two possibilities:

    newSDLProject.PublishProject(new Uri(Properties.Settings.Default.GroupShareUri), true, @"DOMAIN\username", "", "/Server-based projects", null);

    newSDLProject.PublishProject(new Uri(Properties.Settings.Default.GroupShareUri), true, @"DOMAIN\username", , null, "/Server-based projects", null);

    And it does not work. The funny thing is that I keep the same error message! Value cannot be null. Parameter name: username.

    Any idea? Am I missing something?

    Regards,

    Laurent
  • Are you using Studio 2015 or Studio 2014? Can you pleas try in both versions? I don't have at the moment a GroupShare instance configured with the AD so not really able to try and reproduce the problem. At a first glance it looks to be a problem on the client/Studio.

    Romulus Crisan | Translation Productivity Development Manager | SDL | (twitter) @cromica_82 | (blog) http://www.romuluscrisan.com/

  • Good morning Romulus,

    I am using Studio 2015 in combination with GS2015. Unfortunately, I cannot test with Studio 2014 in combination with GS2014 since some configuration are missing on our GS2014 to publish projects. I do not know if I can/if it is recommended to try the combination Studio 2014 with GS2015.

    The funny thing is that, when I try to publish a project via the client using the action button "Publish project" in Studio, it works without problem. Therefore I also suspect a problem on the client side. Looking at the stacktrace, I could see that the PublishProject method calls the "AddCredential" method, which itself calls the SetWindowsIdentity method. This method seems to return the error message.

    What I do not understand is that, when I create my project, I also call the AddCredential method and I do not get an error message here. However, I call the method with the following arguments:

    newSDLProject.Credentials.AddCredential(new Uri("http://servername:81"), "user=;password=;type=Windows");

    The string containing the credential details is slightly different to the one(s) passed by the PublishProject method to the "AddCredential" method. Maybe is the root of the problem somewhere there?

    If you can have a look a the code behind the "Publish project" action in Studio 2015, maybe we can find the reason why this is not working...

    Thanks in advance for your support.

    Regards,
    Laurent
  • Dear Romulus,

    I am having a problem when I want to upload an import TM task to the server and I suspect that this problem is related to the one described here above. It looks like some communication to the server via the API is not working properly. In the case of the upload of the TM importer, it works with Studio 2014 but not in Studio 2015. In the case of the TM importer; I do not even receive an error message. It just stops.

    Any idea?

    Thanks in advance.

    Regards,

    Laurent
  • Can you please send me the stacktrace? I had a look at the code an it should work but I'm missing something I guess

    Romulus Crisan | Translation Productivity Development Manager | SDL | (twitter) @cromica_82 | (blog) http://www.romuluscrisan.com/

Reply Children
No Data