无法解析远程名称:“localhost”

发布于 2024-09-16 01:17:09 字数 461 浏览 1 评论 0原文

应用程序如何无法查找本地主机?

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)

该应用程序运行几个小时然后停止。

编辑 我将服务作为 Web 引用导入,并使用生成的 Reference.vb 文件调用它。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

回眸一笑 2024-09-23 01:17:09

当您的应用程序泄漏操作系统资源时,可能会发生类似这样的奇怪事情。就像句柄或内核内存池一样。当超过进程配额时,东西就会停止工作,错误消息并不总是很好。

运行Taskmgr.exe,“进程”选项卡,“查看+选择列”。至少勾选句柄和线程。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文