Error 21158

Message

Possible error messages:

Without Resource Bundle (default)
  • Authentication failed because the username does not match the specified token/certificate
With Resource Bundle
  • Authentication failed because the username does not match the specified token/certificate
Domain Persistence.PersistenceException
Number 21158
Label FAILURE_CODE_IMPERSONATION_ERROR
Applicable Platform(s) iOS, Android, BlackBerry, Windows Mobile

Cause

Authentication failed because the user name does not match the specified token/certificate.

Action

Verify with the administrator that the token provided by ConnectionProperties.LoginCredentials or DBClass.GetSynchronizationProfile.LoginCredentials is correct. SynchronizationProfile settings take precedence over ConnectionProperties.