您的位置:首页 > 其它

IIS7.5+win7 The Web server is configured to not list the contents of this directory

2009-10-02 09:45 676 查看
The Web server is configured to not list the contents of this directory

Web服务器配置为不列出该目录及该网页您所请求的内容不能因为服务扩展配置。

方法 1

要解决此问题,请按下列步骤操作:

启动 IIS 管理器 。 为此,单击 开始 ,单击 运行 ,键入 inetmgr.exe ,然后单击 确定

在 IIS 管理器中,展开 server name 展开 Web 站点 ,单击要修改的网站。

在功能视图双击 目录浏览

操作 窗格中,单击 启用



回到顶端

方法 2

要解决此问题,请按下列步骤操作:

启动 IIS 管理器 。 为此,单击 开始 ,单击 运行 ,键入 inetmgr.exe ,然后单击 确定

在 IIS 管理器中,展开 server name 展开 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服务器被配置为不列出该目录的内容




error_one error_one

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.双击目录浏览并单击启用链接。




enable directory browsing in IIS 7.0启用目录浏览在IIS 7.0

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.保持冷却。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐