<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dusty Reagan &#187; Visual Studio 2003</title>
	<atom:link href="http://dustyreagan.com/tag/visual-studio-2003/feed/" rel="self" type="application/rss+xml" />
	<link>http://dustyreagan.com</link>
	<description>On Technology &#38; Entrepreneurship</description>
	<lastBuildDate>Thu, 01 Dec 2011 08:00:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Localhost doesn&#039;t work? Can&#039;t debug your .Net web app? This may be your answer.</title>
		<link>http://dustyreagan.com/localhost-doesnt-work-cant-debug-your/</link>
		<comments>http://dustyreagan.com/localhost-doesnt-work-cant-debug-your/#comments</comments>
		<pubDate>Fri, 24 Mar 2006 04:04:00 +0000</pubDate>
		<dc:creator>Dusty Reagan</dc:creator>
				<category><![CDATA[Web & Software Development]]></category>
		<category><![CDATA[Visual Studio 2003]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>

		<guid isPermaLink="false">http://dev.dustyreagan.com/?p=3</guid>
		<description><![CDATA[For my very first post I&#8217;d like to share the solution to a problem I solved a month or two ago, but it was such a pain in the ass I&#8217;m certain someone will find this post useful. When you &#8230; <a href="http://dustyreagan.com/localhost-doesnt-work-cant-debug-your/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For my very first post I&#8217;d like to share the solution to a problem I solved a month or two ago, but it was such a pain in the ass I&#8217;m certain someone will find this post useful.</p>
<p>When you run the debugger in Microsoft Visual Studio .Net 2003 &amp; 2005 for a website project, by default Visual Studio opens up your site in a new web browser using the <em>localhost</em> path. Unfortunately for me, my <em>localhost</em> path was hosed for, what was then, some unknown reason. So when I clicked the debug button my browser would look for a few minutes for the site, then give me a page not found error. Along with this failure to find the page, while my browser was looking, my CPU utilization was running at 100%!</p>
<p>To get around this problem in Visual Studio 2003 I would simple start the debugger, and then as soon as my browser window opened, I clicked Stop. I then typed in my computers IP address in place of <em>localhost</em> in the address bar, and the browser would then happily find my website. This worked fine in 2003 because it relied on IIS to host my developing web application.</p>
<p>Unfortunately this solution did not work when I migrated to Visual Studio 2005. By default when you debug a web application in 2005, the site is opened in a virtual IIS web server. So my old tricks didn&#8217;t work. Now unable to debug my web apps I had to find the solution to my original problem. Why isn&#8217;t my <em>localhost</em> working?</p>
<p>I was able to ping my machine name, my IP address, <em>localhost</em>, and even 127.0.0.1. My Host file was untainted and correct. I even tried altering the Host file to make localhost point to my IP address. I could access websites in IIS using every address method EXCEPT <em>localhost</em>!</p>
<p>So I remoted into a development box I knew localhost worked on. I then ran IPCONFIG on that box and my own. Then I tried to make the results of my IPCONFIG identical to the computer that worked.</p>
<p>I noticed my computer had a lot of extra crap in the IPCONFIG that looked something like this:</p>
<pre>c:\&gt;ipconfig
Windows IP Configuration
Ethernet adapter Ethernet:
 Connection-specific DNS Suffix  . : wcoast.corp.example.com
 IP Address. . . . . . . . . . . . : 157.54.139.57
 Subnet Mask . . . . . . . . . . . : 255.255.252.0
 IP Address. . . . . . . . . . . . : 3ffe:ffff:8311:f282:1460:5260:c9b1:fda6
 IP Address. . . . . . . . . . . . : 3ffe:ffff:8311:f282:b973:4db8:97e2:e978
 IP Address. . . . . . . . . . . . : 3ffe:ffff:8311:f282:200:39ff:fe0e:fc35
 IP Address. . . . . . . . . . . . : fec0::f282:200:39ff:fe0e:fc35%1
 IP Address. . . . . . . . . . . . : fe80::200:39ff:fe0e:fc35%4
 Default Gateway . . . . . . . . . : 157.54.136.1
                                            fe80::210:ffff:fed6:58c0%4
Tunnel adapter 6to4 Tunneling Pseudo-Interface:
 Connection-specific DNS Suffix  . : wcoast.corp.example.com
 IP Address. . . . . . . . . . . . : 2002:9d3b:8b39::9d3b:8b39
 Default Gateway . . . . . . . . . :
Tunnel adapter Automatic Tunneling Pseudo-Interface:
 Connection-specific DNS Suffix  . : wcoast.corp.example.com
 IP Address. . . . . . . . . . . . : fec0::f70f:0:5efe:157.54.139.57%1
 IP Address. . . . . . . . . . . . : 3ffe:ffff:8311:f70f:0:5efe:157.54.139.57
 IP Address. . . . . . . . . . . . : fe80::5efe:157.54.139.57%2
 Default Gateway . . . . . . . . . : fe80::5efe:157.56.253.8%2</pre>
<p>I googled some of the strange IP addresses then I learned about IPv6.</p>
<p>IPv6 is a new IP address protocol that basically gives us more addresses than IPv4. As the internet grows we&#8217;re gradually running out of available IP addresses IPv6 is the solution. IPv6 snuck onto my computer at some point during a Windows update. This is all well and good but for some reason it was killing my <em>localhost</em> path! After I uninstalled it, WHALAH! Localhost started working again, and I could properly debug my web apps in Visual Studio 2005.</p>
<p>To remove ipv6 in Windows XP with SP2, Windows XP with SP1, or Windows Server 2003 go to Control Panel -&gt; Network Connections then double click the network card / adaptor you’re using. Under &#8220;This connection uses the following items&#8221; section you should see &#8220;Microsoft IPv6 Developer Edition&#8221; or &#8220;Microsoft TCP/IP version 6&#8243;. Select it and click uninstall.</p>
<p>If that doesn&#8217;t work, or you have Windows XP with no service pack installed, try running &#8220;netsh interface ipv6 uninstall&#8221; or &#8220;ipv6 uninstall&#8221; in Windows command prompt. Then go patch your OS!</p>
<p>If anyone knows why IPv6 was killing my <em>localhost</em> path, or you know how to have IPv6 installed and keep localhost working, I&#8217;d love to hear from you.</p>
<p>Happy debugging.</p>
<p>References:<br />
<a href="http://www.microsoft.com/technet/itsolutions/network/ipv6/ipv6faq.mspx">IPv6 for Microsoft Windows: Frequently Asked Questions</a></p>
<img src="http://dustyreagan.com/?ak_action=api_record_view&id=207&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://dustyreagan.com/localhost-doesnt-work-cant-debug-your/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

