views:

6704

answers:

12

hello,

I recently installed vs2005 with sp3.5 on a new vista computer. Never had Visual Studio installed on this computer.

whenever i'm building a web project, i receive the following: "Internet Explorer cannot display the webpage".

I can't run any of my projects...

Thanks

A: 

Try enabling debugging to get a more specific error.

magnifico
+1  A: 

The most likely reason is that you don't have a webserver configured to serve your website. By default, a new web site project should be configured to start the ASP.NET Development WebServer. You should look at the project properties to ensure that is indeed the case.

It is also possible that the webserver is configured and running properly. However, (if I remember correctly) the website projects are configured to launch IE with the address of the current page you have open in the editor. If you are developing an ASP.NET MVC website, that will result in the issue above, as the MVC routing system is configured to reject explicit requests to the pages and process only requests through the proper routes to the controllers. Check your address bar and amke sure you are navigating to the root of your website to make sure it works fine.

If that is also not the problem, you should enable debugging for you website project to get additional information about the actual problem.

Two side notes:

  1. I would suggest upgrading the Visual Studio 2008. It's support for website porjects is way better.
  2. If you are doing websites, an HTTP-intercepting tool like Fiddler or HttpWatch will be very useful to debug the interaction between the browser and your website.
Franci Penov
A: 

You might want to check the following;

  • Website has been created in IIS
  • Website is running correct version of .Net
  • There are only websites of the same .Net version in each application pool
  • The site can run scripts

I prefer to change VS to use the local IIS rather than the built in web server which usually runs on a different port and you have less control over it.

Dave Anderson
A: 

An infinite loop may cause that error, however it's unlikely that is happening on all your projects.

Thomas Eyde
A: 

Go to start/control panel/administrative tools, can you see internet information services ? if not, you need to install IIS.

if you can see IIS, then in Internet Explorer, tools/internet options/advanced uncheck Show friendly http messages. then try again and post your new error message here.

Canavar
A: 

1) I think you should check your antivirus and firewall.There is a chance of it blocking your requsests. 2) Please install IIS in your machine or upgrade to IE 8

A: 

You should post the exact error message, and how you got IE to launch. Was it after you went to Debug->Start Debugging or Start Without Debugging? Or are you typing the URL into an instance of IE you launched yourself? If so, are you sure you have the right URL?

Does the build output show it was complete and successful? VS won't launch the built-in web server if it can't compile the solution.

Mufasa
+7  A: 

This is because the system blocks the name localhost with a port number. If you replace the word localhost and type 127.0.0.1 it should work.

To fix this issue, open the hosts file "C:\Windows\System32\drivers\etc\hosts" and comment the line "::1 localhost" and then retry.

Please note that this line is required by IP v6 and should not be removed if you are using it.

Eldo
This took me 2 days to find this answer and I was about to post the same question as the OP. Thankyou - Thankyou so much! :D
Mike
+1  A: 

using 127.0.0.1 localhost as the last statement in C:\Windows\System32\drivers\etc\hosts with ::1 localhost as previos statement worked

A: 

I got a similar problem.. Here's the solution: http://kalpeshpadia.wordpress.com/2009/03/17/aspnet-development-internet-explorer-cant-display-page/

A: 

using 127.0.0.1 localhost as the last statement in C:\Windows\System32\drivers\etc\hosts with ::1 localhost as previos statement worked

Thats work for me Thank you very much

A: 

When i try to open the file in notepad and comment the line or change the line from top to bottom and while saving the messge i’m getting is “Cannot create file Winodws\….” “Make sure the Path & file name r correct”.

How to do it pls help.

vick