Guest User

Untitled

a guest
Jul 10th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. ystem.ServiceModel.Security.MessageSecurityException" в mscorlib.dll
  2.  
  3. Дополнительные сведения: Запрос HTTP не разрешен для схемы аутентификации клиента "Anonymous". От сервера получен заголовок аутентификации "Digest realm="http://bankrot.fedresurs.ru/MessageService/WebService.svc", nonce="WeV4+tuehEuzjB/KyZ8SFg==", opaque="ElC4Gn57aEW50veVtLfagA==", stale=false, algorithm="MD5", qop="auth"".
  4.  
  5. client.ClientCredentials.HttpDigest.ClientCredential.UserName = Properties.Settings.Default.Login;
  6. client.ClientCredentials.HttpDigest.ClientCredential.Password = Properties.Settings.Default.Password;
  7. client.ClientCredentials.HttpDigest.AllowedImpersonationLevel = TokenImpersonationLevel.Impersonation;
  8.  
  9. MessageServiceClient client = new MessageServiceClient();
  10. client.ClientCredentials.HttpDigest.ClientCredential.UserName = "Lomatov1";
  11. client.ClientCredentials.HttpDigest.ClientCredential.Password = "QbZGH7";
  12. client.ClientCredentials.HttpDigest.AllowedImpersonationLevel = TokenImpersonationLevel.Impersonation;
  13. client.Open();
Add Comment
Please, Sign In to add comment