I have wpf application that calls wcf service with forms authentication. I added Service Reference to my solution, and in service configuration checked Generate asynchronous operations.
In code behind I created client to that reference, than I attached event to fire after async method is completed, then username and pass is setted:
client.ClientCredentials.UserName.UserName = txtUser.Text;
client.ClientCredentials.UserName.Password = passbox.Password;
client.IsAuthenticatedAsync(txtUser.Text, passbox.Password);
client.Close();
in IsAuthenticatedCompletedEventArgs I get error: "The communication object, System.ServiceModel.Channels.HttpsChannelFactory+HttpsRequestChannel, cannot be used for communication because it has been Aborted."
是否有任何人知道这种情况发生?
提前感谢!