Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

no such host name NET

Posted on 2011-02-26
5
Medium Priority
?
3,897 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

604 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