Views:

Behavior:
When attempting to authenticate using the .NET SDK, you encounter the following error;

"406 Not Acceptable"

The following code was used, which resulted in this error;

public static ServiceConnection Connect()
{
return ServiceConnection.Create("https://PetersEngineering/DocuWare", "admin", "admin");
}


Solution:
This error occurs when the URI being provided is not properly formatted. Please ensure that the URI provided is using the following format;

For On-premise systems: http://{server}\DocuWare\Platform
For Cloud systems: https://{OrgName}.DocuWare.Cloud\DocuWare\Platform

The following example would work in this case;

public static ServiceConnection Connect()
{
return ServiceConnection.Create("https://PetersEngineering/DocuWare/Platform", "admin", "admin");
}


KBA is applicable for both Cloud and On-premise Organizations.