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 Reply
  • 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
Children
No Data