ASPX pages give Server not found or DNS Error

K

Ken Cooper

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!
 
E

Eric Lawrence [MSFT]

IE Error messages are notoriously hard to debug through, as they're targeted
for end-users, not developers. One thing to check is to ensure that you've
disabled the "Friendly Errors" function in IE's Tools | Internet Options |
Advanced tab. It wouldn't have helped you in this case, but there is a
class of errors that are hidden when "Friendly" errors are on.

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top