<?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>Scriptstar &#187; IIS 7.0</title>
	<atom:link href="http://www.scriptstar.co.uk/tag/iis-7-0/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptstar.co.uk</link>
	<description></description>
	<lastBuildDate>Fri, 23 Jul 2010 22:41:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Web server configured to not list the contents of this directory &amp; The page you are requesting cannot be served because of the extension configuration.</title>
		<link>http://www.scriptstar.co.uk/web-server-configured-to-not-list-the-contents-of-this-directory-the-page-you-are-requesting-cannot-be-served-because-of-the-extension-configuration/</link>
		<comments>http://www.scriptstar.co.uk/web-server-configured-to-not-list-the-contents-of-this-directory-the-page-you-are-requesting-cannot-be-served-because-of-the-extension-configuration/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 14:50:40 +0000</pubDate>
		<dc:creator>Narendra</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[IIS 7.0]]></category>
		<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://www.scriptstar.co.uk/?p=65</guid>
		<description><![CDATA[Updated: 30 April 2010 For a long time, I am reasonably a good developer but I am really afraid of web server issues (iis 6.0/7.0) and deployment issues.  Some of the problems with web servers are really difficult to understand and solve. But recently I have come across one really good book for asp.NET developers [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scriptstar.co.uk%2Fweb-server-configured-to-not-list-the-contents-of-this-directory-the-page-you-are-requesting-cannot-be-served-because-of-the-extension-configuration%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scriptstar.co.uk%2Fweb-server-configured-to-not-list-the-contents-of-this-directory-the-page-you-are-requesting-cannot-be-served-because-of-the-extension-configuration%2F&amp;style=normal&amp;service=bit.ly&amp;service_api=scriptstar%3AR_991057c9b732a05f226e1bff49cdbf3a&amp;hashtags=IIS+7.0,WCF&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><em><strong>Updated: 30 April 2010</strong></em></p>
<blockquote><p><em>For a long time, I am reasonably a good developer but I am really afraid of web server issues (iis 6.0/7.0) and deployment issues.  Some of the problems with web servers are really difficult to understand and solve. But recently I have come across one really good book for asp.NET developers to push the limits of IIS. It explains each and every step in configuring IIS 7 so that even beginners understand why the different decisions are made. After reading this book, I placed myself into the highly dependable contact point in my team at my work place. I highly recommend this book for all asp.NET developers. Please check it <a style="&amp;quot;border: none;" href="http://www.amazon.com/gp/product/0470152532?ie=UTF8&amp;tag=bestp0b-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0470152532&quot;" target="_blank">here</a>.</em></p></blockquote>
<p>Today, I was trying to run some simple WCF application in visual web developer express 2008 and straight away run into problems.</p>
<p>Initially, I got the following error.</p>
<p><strong>Web server is configured to not list the contents of this directory</strong></p>
<div id="attachment_67" class="wp-caption aligncenter" style="width: 615px"><a href="http://www.scriptstar.co.uk/http://www.scriptstar.co.uk/wp-content/uploads/2009/09/not_list_the_contents_of_this_directory1.jpg"><img class="size-full wp-image-67" title="not_list_the_contents_of_this_directory" src="http://www.scriptstar.co.uk/http://www.scriptstar.co.uk/wp-content/uploads/2009/09/not_list_the_contents_of_this_directory1.jpg" alt="error_one" width="605" height="262" /></a><p class="wp-caption-text">error_one</p></div>
<p>It&#8217;s easy. You have to enable directory browsing in IIS (mine IIS 7.0).</p>
<p>Step1:  Just open the IIS, by typing “inetmgr” in the run window.</p>
<p>Step2:  You have to enable Directory browsing at the top level of the root node. Double click on the directory browsing and click enable link.</p>
<div id="attachment_70" class="wp-caption alignleft" style="width: 615px"><a href="http://www.scriptstar.co.uk/http://www.scriptstar.co.uk/wp-content/uploads/2009/09/dirctory_browing.jpg"><img class="size-full wp-image-70" title="dirctory_browing" src="http://www.scriptstar.co.uk/http://www.scriptstar.co.uk/wp-content/uploads/2009/09/dirctory_browing.jpg" alt="enable directory browsing in IIS 7.0" width="605" height="165" /></a><p class="wp-caption-text">enable directory browsing in IIS 7.0</p></div>
<p>May be you have to do this for Default Web Site node as well.</p>
<p>I thought, I did enough to run my WCF service in the browser. But it is still giving me some more problems.</p>
<p>This time the error was</p>
<p><strong>The page you are requesting cannot be served because of the extension configuration.</strong></p>
<p>After googling, people are talking about this issue, but they are talking in VS2005/2008 context. But I have VS Web Developer Express 2008 edition on VISTA.</p>
<p>But I translated them and did the following steps to register my .SVC extension.</p>
<p>Step 1:<br />
Start -&gt; All programs -&gt; Microsoft Windows SDK v6.1 -&gt; CMD Shell</p>
<p><a href="http://www.scriptstar.co.uk/http://www.scriptstar.co.uk/wp-content/uploads/2009/09/cmdshell.jpg"><img class="aligncenter size-full wp-image-71" title="cmdshell" src="http://www.scriptstar.co.uk/http://www.scriptstar.co.uk/wp-content/uploads/2009/09/cmdshell.jpg" alt="cmdshell" width="256" height="588" /></a></p>
<p>Step 2: Navigate to C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation</p>
<p>Step 3: Run servicemodelreg –i</p>
<p>That’s it. You are all done.</p>
<p>Apparently when IIS 7 is installed they don’t turn everything on for you and so you are required to do this to run WCF on your machine.</p>
<p>Hopefully this will save some frustration and time for someone out there. Keep it cool.
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scriptstar.co.uk%2Fweb-server-configured-to-not-list-the-contents-of-this-directory-the-page-you-are-requesting-cannot-be-served-because-of-the-extension-configuration%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scriptstar.co.uk%2Fweb-server-configured-to-not-list-the-contents-of-this-directory-the-page-you-are-requesting-cannot-be-served-because-of-the-extension-configuration%2F&amp;style=normal&amp;service=bit.ly&amp;service_api=scriptstar%3AR_991057c9b732a05f226e1bff49cdbf3a&amp;hashtags=IIS+7.0,WCF&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<div class="shr-publisher-65"></div>
	<p>
	    <a rev="vote-for" href="http://www.sharepointsidekick.com/Submit?url=http%3A%2F%2Fwww.scriptstar.co.uk%2Fweb-server-configured-to-not-list-the-contents-of-this-directory-the-page-you-are-requesting-cannot-be-served-because-of-the-extension-configuration%2F&borderColor=909090&textBackColor=336699&textForeColor=ffffff&countBackColor=ededed&countForeColor=000000&title=Web+server+configured+to+not+list+the+contents+of+this+directory+%26+The+page+you+are+requesting+cannot+be+served+because+of+the+extension+configuration.">
	<img alt="sidekick it" src="http://www.sharepointsidekick.com/image.axd?url=http%3A%2F%2Fwww.scriptstar.co.uk%2Fweb-server-configured-to-not-list-the-contents-of-this-directory-the-page-you-are-requesting-cannot-be-served-because-of-the-extension-configuration%2F&borderColor=909090&textBackColor=336699&textForeColor=ffffff&countBackColor=ededed&countForeColor=000000" style="border:0px"/>
	   </a>
	</p>
	
	]]></content:encoded>
			<wfw:commentRss>http://www.scriptstar.co.uk/web-server-configured-to-not-list-the-contents-of-this-directory-the-page-you-are-requesting-cannot-be-served-because-of-the-extension-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

