<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to Run a Root “/” Site with the VS/VWD 2005 Local Web Server </title><link>http://weblogs.asp.net/scottgu/archive/2005/11/21/how-to-run-a-root-site-with-the-vs-vwd-2005-local-web-server.aspx</link><description>Update: This blog post is now old and out of date. Please read this newer post of mine instead . One of the questions I&amp;rsquo;ve been asked a few times is whether it is possible to build and run an ASP.NET web-app as a top-level &amp;ldquo;root&amp;rdquo; site</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>IIS 7.0 y Win Vista Basic | hilpers</title><link>http://weblogs.asp.net/scottgu/archive/2005/11/21/how-to-run-a-root-site-with-the-vs-vwd-2005-local-web-server.aspx#6848695</link><pubDate>Tue, 20 Jan 2009 19:46:23 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6848695</guid><dc:creator>IIS 7.0 y Win Vista Basic | hilpers</dc:creator><author>IIS 7.0 y Win Vista Basic | hilpers</author><description>&lt;p&gt;Pingback from &amp;nbsp;IIS 7.0 y Win Vista Basic | hilpers&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6848695" width="1" height="1"&gt;</description></item><item><title>re: How to Run a Root “/” Site with the VS/VWD 2005 Local Web Server </title><link>http://weblogs.asp.net/scottgu/archive/2005/11/21/how-to-run-a-root-site-with-the-vs-vwd-2005-local-web-server.aspx#1494363</link><pubDate>Tue, 30 Jan 2007 05:41:10 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1494363</guid><dc:creator>ScottGu</dc:creator><author>ScottGu</author><description>&lt;p&gt;Hi Ed,&lt;/p&gt;
&lt;p&gt;If you are using SP1, then you'll instead want to use this tip/trick to enable root applications: &lt;a rel="nofollow" target="_new" href="http://weblogs.asp.net/scottgu/archive/2006/12/19/tip-trick-how-to-run-a-root-site-with-the-local-web-server-using-vs-2005-sp1.aspx"&gt;http://weblogs.asp.net/scottgu/archive/2006/12/19/tip-trick-how-to-run-a-root-site-with-the-local-web-server-using-vs-2005-sp1.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Alternatively, someone above posted this comment to fix the issue you are seeing:&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt; After fidgeting around &amp;nbsp;with the settings, I found that if you place a final space and a slash after in the arguments, like this: /port:8080 /path:$(ProjectDir) /&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1494363" width="1" height="1"&gt;</description></item><item><title>re: How to Run a Root “/” Site with the VS/VWD 2005 Local Web Server </title><link>http://weblogs.asp.net/scottgu/archive/2005/11/21/how-to-run-a-root-site-with-the-vs-vwd-2005-local-web-server.aspx#1485736</link><pubDate>Sun, 28 Jan 2007 16:20:10 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1485736</guid><dc:creator>Erik</dc:creator><author>Erik</author><description>&lt;p&gt;Thanks alot for these tips!!! Saved me lots of pain and time!!!&lt;/p&gt;
&lt;p&gt;Cheers from Erik / Sweden&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1485736" width="1" height="1"&gt;</description></item><item><title>re: How to Run a Root “/” Site with the VS/VWD 2005 Local Web Server </title><link>http://weblogs.asp.net/scottgu/archive/2005/11/21/how-to-run-a-root-site-with-the-vs-vwd-2005-local-web-server.aspx#1473541</link><pubDate>Fri, 26 Jan 2007 00:26:01 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1473541</guid><dc:creator>Ed</dc:creator><author>Ed</author><description>&lt;p&gt;I just installed VS SP1. When I attempted to start one of my ASP.NET projects I got:&lt;/p&gt;
&lt;p&gt;&amp;quot;Unable to connect to Visual Studio's LocalHost Web server.&amp;quot;&lt;/p&gt;
&lt;p&gt;I followed your instructions and now I get:&lt;/p&gt;
&lt;p&gt;&amp;quot;Unable to start debugging on the web server. Unable to connect to the web server. Verify that the web server is running and that incoming HTTP requests are not blocked by a firewall.&amp;quot;&lt;/p&gt;
&lt;p&gt;Ideas?&lt;/p&gt;
&lt;p&gt;Microsoft Visual Studio 2005&lt;/p&gt;
&lt;p&gt;Version 8.0.50727.762 &amp;nbsp;(SP.050727-7600)&lt;/p&gt;
&lt;p&gt;Microsoft .NET Framework&lt;/p&gt;
&lt;p&gt;Version 2.0.50727&lt;/p&gt;
&lt;p&gt;Installed Edition: Professional&lt;/p&gt;
&lt;p&gt;Windows 2000 Professional&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1473541" width="1" height="1"&gt;</description></item><item><title>re: How to Run a Root “/” Site with the VS/VWD 2005 Local Web Server </title><link>http://weblogs.asp.net/scottgu/archive/2005/11/21/how-to-run-a-root-site-with-the-vs-vwd-2005-local-web-server.aspx#1429627</link><pubDate>Thu, 18 Jan 2007 06:50:49 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1429627</guid><dc:creator>Ashwin</dc:creator><author>Ashwin</author><description>&lt;p&gt;Thanks a lot. You have been of great help.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1429627" width="1" height="1"&gt;</description></item><item><title>re: How to Run a Root “/” Site with the VS/VWD 2005 Local Web Server </title><link>http://weblogs.asp.net/scottgu/archive/2005/11/21/how-to-run-a-root-site-with-the-vs-vwd-2005-local-web-server.aspx#1400471</link><pubDate>Sat, 13 Jan 2007 11:46:04 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1400471</guid><dc:creator>Imar Spaanjaars</dc:creator><author>Imar Spaanjaars</author><description>&lt;p&gt;Yep, that worked for me as well. Thanks Chris!&lt;/p&gt;
&lt;p&gt;Imar&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1400471" width="1" height="1"&gt;</description></item><item><title>re: How to Run a Root “/” Site with the VS/VWD 2005 Local Web Server </title><link>http://weblogs.asp.net/scottgu/archive/2005/11/21/how-to-run-a-root-site-with-the-vs-vwd-2005-local-web-server.aspx#1361895</link><pubDate>Thu, 04 Jan 2007 20:23:36 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1361895</guid><dc:creator>Geoff Taylor</dc:creator><author>Geoff Taylor</author><description>&lt;p&gt;Excellent tip - many thanks Chris.&lt;/p&gt;
&lt;p&gt;Geoff&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1361895" width="1" height="1"&gt;</description></item><item><title>re: How to Run a Root “/” Site with the VS/VWD 2005 Local Web Server </title><link>http://weblogs.asp.net/scottgu/archive/2005/11/21/how-to-run-a-root-site-with-the-vs-vwd-2005-local-web-server.aspx#1351993</link><pubDate>Tue, 02 Jan 2007 21:08:23 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1351993</guid><dc:creator>Chris Sigrist</dc:creator><author>Chris Sigrist</author><description>&lt;p&gt;I had the same problem after upgrading Web Developer Express to SP1. &amp;nbsp;When trying to start my custom web server I would get &amp;quot;such and such directory does not exist&amp;quot;. &amp;nbsp;After fidgeting around &amp;nbsp;with the settings, I found that if you place a final space and a slash after in the arguments, like this: /port:8080 /path:$(ProjectDir) /&lt;/p&gt;
&lt;p&gt;the problem is solved.&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1351993" width="1" height="1"&gt;</description></item><item><title>re: How to Run a Root “/” Site with the VS/VWD 2005 Local Web Server </title><link>http://weblogs.asp.net/scottgu/archive/2005/11/21/how-to-run-a-root-site-with-the-vs-vwd-2005-local-web-server.aspx#1338104</link><pubDate>Sat, 30 Dec 2006 18:47:57 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1338104</guid><dc:creator>Geoff Taylor</dc:creator><author>Geoff Taylor</author><description>&lt;p&gt;Hi Imar,&lt;/p&gt;
&lt;p&gt;I'm getting the same error as you. &amp;nbsp;I think the problem is because $(ProjectDir) has a trailing slash. &amp;nbsp;If you set the 'Prompt for arguments' checkbox on the External Tools menu, you can see the command-line it uses.&lt;/p&gt;
&lt;p&gt;If I try running the exact same command-line from a DOS prompt, I get the same error. &amp;nbsp;If I remove the trailing slash, it works just fine. &lt;/p&gt;
&lt;p&gt;This was working before the SP1 upgrade, so it's a bit annoying that it's broken now (although I'm not sure if it's the $(ProjectDir) handling that has changed or the development web server). &amp;nbsp;I don't really want to recreate the project as a web site project, since, well, it's not a web site, so it looks like hard-coding the project directory is the way forward for me.&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;Geoff&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1338104" width="1" height="1"&gt;</description></item><item><title>re: How to Run a Root “/” Site with the VS/VWD 2005 Local Web Server </title><link>http://weblogs.asp.net/scottgu/archive/2005/11/21/how-to-run-a-root-site-with-the-vs-vwd-2005-local-web-server.aspx#1325776</link><pubDate>Thu, 28 Dec 2006 13:29:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1325776</guid><dc:creator>Imar Spaanjaars</dc:creator><author>Imar Spaanjaars</author><description>&lt;p&gt;Hi Scott,&lt;/p&gt;
&lt;p&gt;Yeah, I agree. It's a great improvement....&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Imar&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1325776" width="1" height="1"&gt;</description></item></channel></rss>