I might guess you are doing Milestone Federated Architecture. Please tell me if that is so and explain the setup. If multiple servers are involved I would like to hear if it works in the regular one site scenario.
This is because of a bug in how we handle the initial communication. This should have been a warning that addiotional parameter should be added (in this case it would be the secrutiynamespace). I’ve created a bug and we will look into fixing it.
As a workaround I suggest that the following options:
1.Set the following property in the start of your code: Configuration.Instance.ConfigurationApiManager.UseRestApiWhenAvailable = false;
This will change the functionality of the SDK to use the configAPI for communication which doesn’t have this issue. We have no plans of deprecatomg the configAPI, but some new features may only work in through the REST API. So once the bug has been fixed, I suggeste that you remove this line.
2.When receiving the first error, check if SecurityNamespaceValues on the task is empty. If they are not emtpy, ignorer the error. This is not the pretty solution, but it will work. The bug is only seen with the initial call, with the following calls, you will receive task with state success.
I hope the workarounds make sense and can work for you. If you have further questions, please let me now.