"Internet Explorer cannot display the webpage" when using Cassini on Windows Vista

roger's picture

I was doing some ASP.NET MVC this weekend, and I couldn't get the project to start: all I got was "Internet Explorer cannot display the webpage", when using Visual Studio's built-in development web server (Cassini).

I think it's because Cassini doesn't support IPv6, and on Vista, "localhost" refers to the IPv6 address ::1, rather than the IPv4 address 127.0.0.1.

If you use http://127.0.0.1:12345/Home/, then it works fine.

To resolve this, you can go to the project settings and set the Start URL explicitly.

Comments

Thank-you, sir, saved me a

Thank-you, sir, saved me a bunch of time and head-scratching!

Yes...

Yes, that's a good workaround, but this was nevertheless a bug in IE9 that is fixed in later builds. Thanks!

Re: Yes...

Actually, it's an implementation detail of Vista's IPv6 stack. I'm glad that later builds of IE9 work for you, though.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.