ASPX pages give Server not found or DNS Error

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ken Cooper (ken__at__xeladev.net)
Date: 02/20/04


Date: Fri, 20 Feb 2004 19:35:51 -0000

I have just encountered a problem that was driving me nuts. Every aspx page
in my web application gave the error "Cannot find server or DNS Error". I
was multi-tasking at the time and was developing and downloading from the
internet. I ran a virus scan and found a trojan on my system which I
deleted, but what damage had it already done?

I found the following reports of this problem without solutions
http://www.dotnet247.com/247reference/msgs/22/114547.aspx
http://p2p.wrox.com/archive/aspx_beginners/2002-09/3.asp

I was in deep despair contemplating a complete system rebuild as no matter
how I referenced localhost (127.0.0.1 machine name etc) I still got the
message "Cannot find server". I had recently managed to screw up my local
networking and a rebuild was necessary then to recover my system. Had I done
the same again?

Thank goodness I paused, took a deep breath and tried to debug my
application. All my aspx pages inherit from my own base class and I had
introduced an infinite loop into the base class. The error message was
completely misleading and had nothing to do with the trojan - it was all my
own doing. If I had completely rebuilt my system I would have come back to
exactly the same problem hours later.

There's a familiar moral to this story - don't beleive all error messages
and always consider the possibility that it IS your fault!



Relevant Pages

  • Re: Getting error message HTTP/1.1 500 Internal Server Error on development machine
    ... When I tried browsing one of the ASPX pages, ... "Server Application Unavailable ... An error message detailing the cause of this specific ... request failure can be found in the application event log of the web server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Compilation Error: BC31019: Unable to write to output file
    ... I have a windows server 2003 machine that cannot run any aspx pages. ... Compiler Error Message: BC31019: Unable to write to output file ... I have removed the subfolders in Temporary ASP.NET Files folder and tried to ...
    (microsoft.public.dotnet.framework.aspnet)
  • page not found on previously existing page
    ... I updated the .vb file for my .aspx page and put it on the server, ... "page not found" error message. ... I made a minor change to the page and ...
    (microsoft.public.dotnet.framework.aspnet)
  • Trust relationship
    ... I had a server crash and did a complete rebuild of the server (left the ... desktops as is). ... now I am getting the following error message: ...
    (microsoft.public.windows.server.sbs)
  • RE: The underlying connection was closed
    ... "MattM" wrote:> I am getting the "The underlying connection was closed: Unable to connect to> the remote server" message when trying to connect an ASPX page to a simple> Hello World web service. ... testserver.abc.com) the error message happens. ...
    (microsoft.public.dotnet.framework.webservices)