?
Solved

no such host name NET

Posted on 2011-02-26
5
Medium Priority
?
3,761 Views
Last Modified: 2016-09-01
I have a web page being hosted on my web server which is working fine in the building i work from however another building gets the following error

No such host is known
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: No such host is known

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 (0x2af9): No such host is known]
   System.Net.Dns.GetAddrInfo(String name) +471
   System.Net.Dns.InternalGetHostByAddress(IPAddress address, Boolean includeIPv6, Boolean throwOnFailure) +125
   System.Net.Dns.GetHostEntry(String hostNameOrAddress) +5327211
   _Default.Page_Load(Object sender, EventArgs e) +82
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


the other building are able to ping the web server so i dont know why it wont work?
0
Comment
Question by:LBGUC04
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 9

Accepted Solution

by:
shalabhsharma earned 1000 total points
ID: 34987428
0
 
LVL 5

Assisted Solution

by:ABLComputers
ABLComputers earned 1000 total points
ID: 34991249
The problem that you're having seem to be a DNS problem. On your DNS server you'll need to create a new host and point it to the server's IP address that is hosting the website.

0
 

Author Comment

by:LBGUC04
ID: 34991255
i found the problem in the below code thanks for your help

System.Net.Dns.GetHostEntry(Request.ServerVariables["REMOTE_HOST"]).HostName
0
 

Expert Comment

by:Zapato Café
ID: 41780335
i have a problema witch internet explorer, but Firefox ok
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Make the most of your online learning experience.
This program is used to assist in finding and resolving common problems with wireless connections.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question