IIS7.5+win7 The Web server is configured to not list the contents of this directory
The Web server is configured to not list the contents of this directory
Web服务器配置为不列出该目录及该网页您所请求的内容 , 不能因为服务扩展配置。
Today, I was trying to run some simple WCF application in visual web developer express 2008 and straight away run into problems.今天,我试图运行一些在Visual Web Developer简单的WCF应用程序,并表示2008年马上遇到了麻烦。
Initially, I got the following error.起初,我得到了下面的错误。
Web server is configured to not list the contents of this directory Web服务器被配置为不列出该目录的内容
It's easy.这很容易。 You have to enable directory browsing in IIS (mine IIS 7.0).你必须在IIS中启用目录浏览(IIS 7.0的地雷)。
Step1: Just open the IIS, by typing “inetmgr” in the run window.步骤1:只要打开IIS,通过键入“键入Inetmgr在运行窗口”。
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.双击目录浏览并单击启用链接。
May be you have to do this for Default Web Site node as well.可能是你必须为默认网站,以及该节点。
I thought, I did enough to run my WCF service in the browser.我想,我没有足够运行在浏览器中我的WCF服务。 But it is still giving me some more problems.但它仍给我一些问题。
This time the error was这一次的错误
The page you are requesting cannot be served because of the extension configuration. 该网页您所请求不能因为扩展配置服务。
After googling, people are talking about this issue, but they are talking in VS2005/2008 context. google搜索后,人们在谈论这个问题,但他们在VS2005/2008方面说话。 But I have VS Web Developer Express 2008 edition on VISTA.但我对远景队Web Developer Express的2008年版。
But I translated them and did the following steps to register my .SVC extension.不过,我并没有翻译下面的步骤注册我的。SVC的延伸。
Step 1:第1步:
Start -> All programs -> Microsoft Windows SDK v6.1 -> CMD Shell开始- >“所有程序” - >的Microsoft Windows SDK 6.1版- “加利福尼亚壳牌
Step 2: Navigate to C:WindowsMicrosoft.NETFrameworkv3.0Windows Communication Foundation第2步:定位到C:的Windows Microsoft.NET 框架 3.0 Windows通信基础
Step 3: Run servicemodelreg –i步骤3:运行servicemodelreg - 1
That's it.就是这样。 You are all done.你们都做。
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.显然,当IIS 7安装他们不把你的一切,所以你必须这样做是为了您的机器上运行WCF的。
Hopefully this will save some frustration and time for someone out there.希望这将节省一些人在那里沮丧和时间。 Keep it cool.保持冷却。
posted on 2009-10-02 09:45 xieguang133 阅读(1178) 评论(0) 收藏 举报
回到顶端


浙公网安备 33010602011771号