I'm trying to debug my application, but I can't find the correct URL to do so.
After I click F5 (start debugging) in Visual Studio 2010 I see the following in the system tray notification window:
ASP.NET Development Server
http://localhost:1392/zz
But in the Chrome browser address that is opened the URL is:
http://www.localhost/zz/Default.aspx
and I see a notification: Oops! Google Chrome could not find www.localhost
If I change the address manually to
http://localhost:1392/zz/Default.aspx
it redirects back again to
http://www.localhost/zz/Default.aspx again
So I can't seem to debug my website.
I have hostsman running with the following URL's:
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
192.168.0.10 www.zorgbeurs.nl
192.168.0.10 zorgbeurs.nl
please mark answers as 'Answered' and post back solutions when you figure stuff out that isnt in the post already.
Peter Smith
Contributor
4605 Points
2109 Posts
Start debugging in Visual Studio 2010 redirects to invalid url
Nov 16, 2012 07:42 PM|LINK
I'm trying to debug my application, but I can't find the correct URL to do so.
After I click F5 (start debugging) in Visual Studio 2010 I see the following in the system tray notification window:
ASP.NET Development Server
http://localhost:1392/zz
But in the Chrome browser address that is opened the URL is:
http://www.localhost/zz/Default.aspx
and I see a notification: Oops! Google Chrome could not find www.localhost
If I change the address manually to
http://localhost:1392/zz/Default.aspx
it redirects back again to
http://www.localhost/zz/Default.aspx again
So I can't seem to debug my website.
I have hostsman running with the following URL's:
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
192.168.0.10 www.zorgbeurs.nl
192.168.0.10 zorgbeurs.nl