开发者

The remote name could not be resolved: 'localhost'

开发者 https://www.devze.com 2023-01-12 12:04 出处:网络
How can the application not be able开发者_运维知识库 to lookup localhost? The remote name could not be resolved: \'localhost\';

How can the application not be able开发者_运维知识库 to lookup localhost?

The remote name could not be resolved: 'localhost'; 

StackTrace;    
      at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
      at System.Net.HttpWebRequest.GetRequestStream()
      at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

the application works a couple of hours and then stops.

Edit I import the service as a webreference and call it using the generated Reference.vb file.


Odd things like this can happen when your app is leaking operating system resources. Like handles or kernel memory pool. Stuff stops working when it exceeds the process quota, error messages aren't always great.

Run Taskmgr.exe, Process tab, View + Select Columns. Tick at least Handles and Threads.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号