Visual Studio – Internet Explorer Cannot Display page, WebDev.WebServer.exe not responding

Today I noticed that Visual Studio wasn’t running my website projects when hitting Run. All I got was an Internet Explorer page showing the ‘Cannot Display Page‘ error. After closing the project down, and re-creating a new one, the same problem occurred. After googling the problem, I found out the problem may have have been a Vista update. It seems that the hosts file in C:\windows\system32\drivers\etc had the missing loopback address for localhost!

I added with the localhost entry and bingo it worked again!

Remember to open a DOS prompt with administrator privledges and run notepad to edit the file, otherwise Vista will prevent you from editing the file. Its a shame when things like this cause you ‘outage’ in your development time, but unfortunately these types of things do arise from time to time.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: