Last post Dec 11, 2010 10:47 AM by mukeshjnvk
Jan 25, 2008 12:59 PM|lexy|LINK
I have VWD 2008 Express Edition in combination with Vista on two boxes, both with the same problem.
This is what I try to do:
This results in Page cannot be displayed.
No doubt it must be something simple as more people would have tried this, but not for me I'm afraid.
visual web developer 2008 express
Jan 25, 2008 01:33 PM|dparsons|LINK
Does this happen when you hit Shift F5 or F5? Does it happen if you right click on the Document and select 'View in Browser' from the context menu?
Did you set the site up to run on the FileSystem (Cassini) or in IIS?
Jan 25, 2008 01:54 PM|lexy|LINK
It happens right after I installed the program and exactly following my steps from the first post.
No further steps taken, so the file system.
View in Browser Context Menu isn't that the same Option as I described?
Jan 25, 2008 02:07 PM|dparsons|LINK
Just trying to eliminate possiblities. If all of the other methods displayed your page correctly, then there could be an issue (bug) with VWD and that particular button. Have you tried to view the page using the other methods i have described?
Jan 25, 2008 02:12 PM|lexy|LINK
And i appreciate that!
No, all ways lead to the same problem. Localhost is simply not working
I thought it could have something to do with Intranet Settings as thas is what VWD starts about just after install on XP
But I think I have tried all sorts of security options in Vista
Jan 25, 2008 02:19 PM|dparsons|LINK
Well if you are using the FileSystem as your web host then LocalHost really has nothing to do with it. I run VWD 2008 on Vista Business at home and I did not have any issues. Of course I am the administrator of the PC so I don't have any security issues.
What do you mean by this:
Jan 25, 2008 02:41 PM|lexy|LINK
Well perhaps I misunderstood.
I make the Website somewhere on C:
When I try to view Default.aspx I see a little window in System tray saying:
ASP.NET Development server
In the Browser I get the problem
Jan 25, 2008 04:22 PM|lexy|LINK
Perhaps this can clarify things a little bit.
I just found out that when I choose View with Internal Browser all goes well.
When I choose Default (IE7) it errors out.
Jan 25, 2008 09:43 PM|dparsons|LINK
Sorry about the late response, gut hung up on some things.
Ok, I can not reproduce your error in VWD using the method you described earlier.
Couple of things, in your web.config do you have this line:
and also do you have the CustomErrors tag set to "Off"?
Have you tried accessing the site from directly in IE as opposed to clicking view in browser? (The development server must be running which is denoted by the icon in your system tray)
Jan 25, 2008 10:21 PM|taskmeister|LINK
I was checking for the same solution. I have been running VWD 2008 Express on a Windows XP machine since mid December and things operate correctly. I also installed it on my wife's PC which is running Vista Home Premium. Neither installations reported any
problem. Everything runs the same on both machines except when she is ready to test the site. In both cases either using F5 or Ctrl-F5 you can see the local host server open in the tray, but the browser receives a can not access local host and the website
address. On the XP machine the browser opens the website and runs as if it were on the internet.
I thought maybe it was an Intranet security problem also as my wife's e-mail address comes up on the Webmaster hotlink on the error message.
Of course this means she can not open the webconfig tool either as it runs on a local host. It can't be the code for her website as an empty Aspnet website will not display either.
Jan 26, 2008 03:25 AM|lexy|LINK
Yes, this sounds like the same problem exactly.
The option to use the Internal browser sort of solves the problem as far as that I can at least use VWD on Vista.
Jan 26, 2008 08:35 AM|taskmeister|LINK
I tried changing the browser options and changing my default browser to the internal browser. I see it still opens a local host, but it actually operates similar to the way it would operate on my XP machine. I checked the XP computer and I have it set to
operate with Firefox as the default browser, which is the way my wife's machine had been set.
Would this mean that I should have looked at the options in the browsers for a security block? I haven't attempted to use any of the debug features yet, and I am constantly hearing that websites display differently in different browsers, so should I really
continue to pursue another answer? I noticed the internal browser brings up an Explorer window and I had changed her default browser to Explorer once on Vista and had the same problem viewing the site. However that was done on Vista and not in VWD.
Jan 26, 2008 08:47 AM|Bdbodger|LINK
Does disabling the windows firewall make any difference ?
Jan 26, 2008 10:18 AM|lexy|LINK
No, I tried security settings of IE (and completely disabled Firewall), it had no effect.
The Internal Browser opens the Website. I's just that browserwindow runs
I prefer that it runs in IE7 (like on my other computer which runs on XP with VWD)
How your site appears in different browsers has a lot to do with how you program your stuff (CSS and so on)
Jan 26, 2008 08:33 PM|taskmeister|LINK
I checked my wife's machine and her Firewall was turned off. We recently installed Norton 360, but this was occurring before and after that installation.
Is using the browser to access the local host considered an intranet connection or does the browser treat it as if it were an internet connection?
Feb 04, 2008 04:23 PM|Norsten|LINK
I had this problem and was able to resolve -but i am not overly happy with the way i had to fix it ...
go to your hosts file and comment out the ::1 (the "::1" is use for the localhost for ipv6)
::1 localhost <--- comment out this line #::1
I am not sure if this is a vs2008 thing or a vista thing
if anyone finds out then please let me know
Feb 05, 2008 10:13 AM|lexy|LINK
In my search for a solution i read somewhere about this ipv6.
How do I get to that hostfile exactly?
http://localhost:50323/lex/ is what the addressbar shows me.
Found it: (google ....[:$])
Mar 15, 2008 11:16 AM|demollo|LINK
You really made my day guys, i had the same problem , not any more , cheers [:)]
Jul 11, 2008 02:15 PM|Greatboy|LINK
Did you solve the problem. It appears as though I have same problem with Visio 2008 and Vista. My browser can not display the website. Vista is not open. What do I do.
Mar 10, 2009 05:01 PM|Marlinspike2009|LINK
This solution involving removing the dodgy line in the %windows%/system32/drivers/etc/hosts file resolved my issue.
I have several questions however...
1. Why is it so hard to find resolution to this problem on these forums?
2. Why is there on official line from Microsoft about this?
3. How did this IPv6 localhost entry get into my hosts file, because one moment my site was running and the next it wasn't?
4. When is the planned fix for the development web server that resolves this issue without people having to manually fiddle around with hosts settings?
Anyway, thanks for the tips guys - without you I would have wasted another two days or so fumbling around googling for the answer. It's only a shame that Microsoft cannot admit to these problems in a more prominent fashion in the online MDSN documentation
Mar 11, 2009 08:53 AM|sharongefen|LINK
The same problem happened to me too. I'm thinking that one of the recent Windows Updates changed this on localhost
(and I'm really trying to understand why this step was deemed necessary by Microsoft, because it makes no f***ing sense to me)
Thanks for the tips, ppl! Very helpful!
Dec 20, 2009 09:05 AM|pdzarkar|LINK
Great solution to problem buddy ..... nw just tel me where u got dis trick ..??? u r genius buddy .... keep posting solution n best luck for ur future ..
Dec 21, 2009 10:50 AM|Preston B|LINK
An automatic update or certain virus protection apps may have made a change to your 'hosts' file.
Your "hosts" file is what tells your computer that "localhost" should map to "127.0.0.1" so here is where your file is:
Close Visual Web Developer and any browser that is open.
Locate the 'hosts' file using Windows Explorer
Open that file in Notepad under a 'computer administrator account'. The following entry should be present. If it is not, or does not look like the following, add or edit the entry:
Save the file and try again.
Dec 02, 2010 03:05 AM|Keith L|LINK
computer administrator account
Great help Preston - it solved my problem.
Just one thing. As I was logged in as an administrator, I thought I'd automatically be using Notepad under a 'computer administrator account', but it wouldn't let me save the file.
The solution was to launch Notepad by clicking right on Notepad and selecting "Run as administrator", then open the hosts file using the File/Open menu.
Dec 11, 2010 10:47 AM|mukeshjnvk|LINK