문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top