【问题标题】:The remote name could not be resolved: 'localhost'无法解析远程名称:'localhost'
【发布时间】:2010-08-23 07:11:42
【问题描述】:

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

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)

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

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

【问题讨论】:

  • 也许您还应该展示您如何调用 WebService。很难猜出你在做什么/试图实现什么

标签: .net localhost webrequest webexception


【解决方案1】:

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

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

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-09-08
  • 1970-01-01
  • 2016-05-31
  • 2013-05-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多