使用ASP.net从服务器获取客户端计算机名称和系统名称 [英] Get client Computer name and System name from Server using ASP.net

查看:289
本文介绍了使用ASP.net从服务器获取客户端计算机名称和系统名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用下面的代码时,它在我的本地主机上工作正常,但是当服务器上的主机收到错误时。

When am using below code it's working fine on my local host but when am host on server getting error.

Response.Write("sam "+System.Net.Dns.GetHostEntry(Request.ServerVariables["REMOTE_HOST"]).HostName);







错误:



请求的名称有效,但未找到所请求类型的数据



非常紧急.......




Error:

The requested name is valid, but no data of the requested type was found

Very urgent.......

推荐答案

请参阅:http://support.microsoft.com/kb/245574 [ ^ ]。



-SA


这篇关于使用ASP.net从服务器获取客户端计算机名称和系统名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆