我正在尝试连接Web服务并出现以下错误消息。
An error occurred while sending the request.
Error 12002 calling WINHTTP_CALLBACK_STATUS_REQUEST_ERROR, 'The operation timed out'.
使用net standart库和net core 3.1控制台应用程序。 httpclient连接超时出了点问题,但我不知道该如何解决。
代码示例:
FirmboxSoapClient soapClient = new FirmboxSoapClient(FirmboxSoapClient.EndpointConfiguration.FirmboxSoap);
await soapClient.OpenAsync();
var response = await soapClient.loginAsync("USER_NAME", "PASSWORD", "Version", false);
更新软件包错误后变为
连接尝试失败,因为被连接方未 一段时间后正确响应或建立连接 失败,因为连接的主机无法响应。