Cannot access localhost on Vista when debugging local ASP.NET Applications

by APIJunkie 5/6/2008 5:31:00 PM

If you are trying to debug ASP.NET applications on Vista you might run into the following problem:

localhost is not accessible through your browser and the error that is displayed is "Internet Explorer cannot display the webpage".

After some googling I ran across a reference to the same problem.

The problem has to do with the fact that there are 2 entries for local host in the hosts file ([Windows directory]\System32\drivers\etc\hosts).

One for ipv4 and one for ipv6.

Example:

127.0.0.1 localhost
::1 localhost

To solve the problem you can remark one of them. The example below remarks the ipv6 entry.

127.0.0.1 localhost
# Causes problems when using localhost ->
#::1 localhost

Note that you might not be able to modify the hosts file even if you are running as an administrator.

The following Microsoft KB explains how to change the hosts file:

http://support.microsoft.com/default.aspx?scid=kb;en-us;923947

Hope this helps...
 

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

ASP.NET | PRB | Vista | How To | Debug

How to help a sleep deprived Vista based computer when the Wake Source Device is a USB Root Hub

by APIJunkie 1/22/2008 7:48:00 AM

Recently One of my Vista machines started suffering from insomnia.
 
Every time Vista would go into sleep mode it will power down but will immediately wake up after a couple of seconds.
 
A little search in the windows system event log produced the following event: EventID 1, Wake Source: Device -USB Root Hub.
 
A little further search on Google landed me in a Microsoft KB that might help some one else but did not solve my problem:
 
A computer that is running Windows Vista appears to sleep and then immediately wake.
 
Although the above KB did not solve my problem, it came pretty close.
 
As it turns out some devices do not behave very well with power management turned on.
 
In my case it was a USB mouse.
 
To solve my problem I had to disable the mouse ability to wake up the computer from sleep mode.
 
In your case it might be another connected device.

If you want to disable a device's ability to wake your computer from sleep mode follow the steps below:
 
 1. Click Start, right-click Computer, and then click Manage.
 
 2. In the User Account Control dialog box, click Continue.
 
 3. Click Device Manager, expand the device family in question (in my case it was "Mice and Other Pointing Devices").
 
 4. Right-click the device, and then click Properties.
 
 4. Click the Power Management tab, uncheck the "Allow this device to wake the computer" check box, and then click OK. 
 
Hope this helps some one else...
 

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

KB | PRB | Troubleshoot | Vista | Sleep Mode

Powered by BlogEngine.NET 1.2.0.0
Theme by Mads Kristensen

About the author

Name of author

My name is Bacon…James Bacon.

I am an API wars veteran I was wounded by x86 assembly, recovered and moved on to C. I am currently stuck in C++ and sniffing .NET.

I am mainly here to ramble about coding, various API’s, Junkies(me especially) and everything else that happens between coders and their significant other.

E-mail me Send mail


Calendar

<<  November 2008  >>
MoTuWeThFrSaSu
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

View posts in large calendar

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

Sign in