<?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>David Mellors &#187; Visual Studio</title>
	<atom:link href="http://www.wahooga.com/tag/visual-studio/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wahooga.com</link>
	<description>Personal Blog</description>
	<lastBuildDate>Mon, 01 Aug 2011 09:55:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Visual Studio development web server dynamic port numbering problem</title>
		<link>http://www.wahooga.com/2008/02/20/visual-studio-development-web-server-automatic-port-numbering-problem/</link>
		<comments>http://www.wahooga.com/2008/02/20/visual-studio-development-web-server-automatic-port-numbering-problem/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 11:55:00 +0000</pubDate>
		<dc:creator>Dave Mellors</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">/archive/2008/02/20/visual-studio-development-web-server-automatic-port-numbering-problem.aspx</guid>
		<description><![CDATA[The problem&#160; I had this problem in Visual Studio 2005 and now I have it in Visual Web Developer 2008 express edition where when debugging a web application using the development web server the dynamic port number used by the server didn&#8217;t match what Visual Studio had used for the web browser. It was always [...]]]></description>
			<content:encoded><![CDATA[<p>
<p><span style="FONT-WEIGHT: bold">The problem</span>&nbsp;</p>
<p></p>
<p>I had this problem in Visual Studio 2005 and now I have it in Visual Web Developer 2008 express edition where when debugging a web application using the development web server the dynamic port number used by the server didn&#8217;t match what Visual Studio had used for the web browser. It was always wrong and normally out by two or three port numbers.</p>
<p></p>
<p>For example the cassini web development server starts and I can see in the notification area what port number it uses</p>
<p></p>
<p><img title="visual studio web server port" height=46 alt="visual studio web server port" src="http://www.wahooga.com/images/port%20number.gif" width=207 mce_src="/images/port%20number.gif"></p>
<p></p>
<p>However the web browser started by Visual studio looks like this</p>
<p></p>
<p><img src="http://www.wahooga.com/images/browser-port-number.gif" mce_src="/images/browser-port-number.gif"></p>
<p></p>
<p>Clearly that isn&#8217;t going to work. </p>
<p></p>
<p style="FONT-WEIGHT: bold">The Solution</p>
<p></p>
<p>I managed to track down the problem to my firewall software part of the ESET Smart Security Suite. Now, I am pretty sure that when I was using Visual Studio 2005 and had the problem that I was using either McAfee, Norton/Symantec or possibly even the Outpost firewall software. My solution won&#8217;t work if you aren&#8217;t using Eset but hopefully it will help you to look in the right area.</p>
<p><span id="more-163"></span></p>
<ol></p>
<li>If you are using ESET Smary Security Suite then I bet you are using the Protocol Filtering (you can tell by looking in the Advanced Firewall Setup).<br />You could just turn it off and ignore the rest of my blurb but you probably want to keep Protocol Filtering enabled so goto step 2.</li>
<p></p>
<li>In the Advanced setup you need to locate the section shown in the image below and uncheck the web development server.<br /><img src="http://www.wahooga.com/images/setup-dialog.gif" mce_src="/images/setup-dialog.gif"></li>
<p></p>
<li>Make sure you stop the web development server if it&#8217;s still running and then try debugging from Visual Studio again.</li>
</ol>
<p></p>
<p style="FONT-WEIGHT: bold">Feedback</p>
<p></p>
<p>Please let me know if this helps you or if you think the instructions can be improved. Equally if you using a different firewall and found the solution please let me know.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wahooga.com/2008/02/20/visual-studio-development-web-server-automatic-port-numbering-problem/feed/</wfw:commentRss>
		<slash:comments>73</slash:comments>
		</item>
	</channel>
</rss>

