Pergunta

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.

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top