无法解析远程名称:“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)
该应用程序运行几个小时然后停止。
编辑 我将服务作为 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您的应用程序泄漏操作系统资源时,可能会发生类似这样的奇怪事情。就像句柄或内核内存池一样。当超过进程配额时,东西就会停止工作,错误消息并不总是很好。
运行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.