Server Error in '/Allcargoglobal.net' Application.
--------------------------------------------------------------------------------
The requested name is valid, but no data of the requested type was found
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: The requested name is valid, but no data of the requested type was found
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SocketException (0x2afc): The requested name is valid, but no data of the requested type was found]
System.Net.Dns.GetHostByAddress(IPAddress address) +264
System.Net.Dns.GetHostByAddress(String address) +65
AGL.Dac.ITHelp.WebUserControl1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\IThelp\UrlLinkList.ascx.cs:36
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Page.ProcessRequestMain() +750
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2379; ASP.NET Version:1.1.4322.2379
The code is
System.Net.IPHostEntry host;
host = System.Net.Dns.GetHostByAddress(Request.ServerVariables["REMOTE_ADDR"]) ;
Label5.Text = host.HostName.Replace(".acmho.com","");
Label1.Text=DateTime.Now.ToLongTimeString().ToString();
UserName=Page.User.Identity.Name;
Connection oCon = new Connection();
Label3.Text = oCon.GetUserName("Get_UserName","@UserDomainName`",Page.User.Identity.Name+"`");
LinkList.DataSource=Connection.DataSet("Get_URLList","","");
LinkList.DataBind();
Datalist1.DataSource=Connection.DataSet("Get_SiteList","","");
Datalist1.DataBind();
I get the error when i click the link then it get's the above error message.