gpt4 book ai didi

asp.net - 连接尝试失败

转载 作者:行者123 更新时间:2023-12-02 13:32:29 25 4
gpt4 key购买 nike

我有一个 ASP.NET 应用程序正在尝试连接到 Twitter。当我尝试连接时,我收到以下堆栈跟踪:

[SocketException (0x274c): A connection attempt failed because the connected party did notproperly respond after a period of time, or established connection failed because connected host has failed to respond 64.202.165.130:3128]   System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +239   System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +35   System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +224[WebException: Unable to connect to the remote server]   System.Net.HttpWebRequest.GetResponse() +5313085

在我看来一切都是正确的。我试图确定这是 Twitter 还是我的应用程序的问题?

最佳答案

这也是一个很好的来源:

http://support.microsoft.com/kb/318140

它对我有用,必须将 defaultProxy 部分添加到我的 web.config 才能让我的网站连接到 Web 服务。

关于asp.net - 连接尝试失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/991523/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com