网站不是重定向到默认文档经典管道模式 [英] Site not redirecting to Default Document in Classic pipeline mode

查看:106
本文介绍了网站不是重定向到默认文档经典管道模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IIS 7.5
Windows 7 64-bit
.NET 4.0

我在IIS 7.5中的.NET 4.0网站。默认文档设置为home.aspx。

I have a .NET 4.0 site in IIS 7.5. The Default Document is set to home.aspx.

如果应用程序池的托管管道模式设置为经典
的http://本地主机/ mysite的显示以下错误

If the application pools managed pipeline mode is set to "Classic" http://localhost/mysite displays the following error

Server Error in '/mysite' Application.
--------------------------------------------------------------------------------

The resource cannot be found. 
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

Requested URL: /mysite


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 

如果我去 HTTP://localhost/mysite/home.aspx ,网站会显示正确

If I go to http://localhost/mysite/home.aspx, the site displays correctly.

如果我使用集成作为管理的管道,该网站显示正确使用两种路径。

If I use "Integrated" as the managed pipeline, the site displays correctly using either path.

我曾尝试EnableExtensionlessUrls修复早期IIS版本,也可以直接把默认的文档信息在web.config中。这些都不工作了经典的管道模式。

I have tried the EnableExtensionlessUrls fix for earlier IIS versions and also to put the default document information directly in the web.config. Neither of these worked for the "Classic" pipeline mode.

任何想法,为什么会这样?

Any idea why this is happening?

推荐答案

有是(与 KB980368推出一个bug A [原文]有可用更新,使某些IIS 7.0或者IIS 7.5的处理程序来处理其URL不以句点结尾)也被卷成的Windows 7 / 2008R2 Service Pack 1中我们发现,当这个错误请求我们推出了此修补程序是必需的WebMatrix的虚拟主机的验证。

There is a bug introduced with KB980368 (A [sic] update is available that enables certain IIS 7.0 or IIS 7.5 handlers to handle requests whose URLs do not end with a period) which is also rolled into Windows 7/2008R2 Service Pack 1. We discovered this bug when we rolled out this hotfix which is required for WebMatrix web hosting validation.

请参阅我的previous问题和答案在这里:

See my previous question and answer here:

<一个href=\"http://stackoverflow.com/questions/5080837/asp-net-2-0-and-4-0-seem-to-treat-the-root-url-differently-in-forms-authenticatio\">ASP.NET 2.0和4.0似乎在窗体身份验证区别对待的根网址

我们与MS PSS提出这一点,而他们纷纷转载这个问题他们还没有得到修复它(因为23/02/11 PSS的问题​​一直是开放的)。所有这一切发生得远是一个新的知识库文章承认问题已经印发

We raised this with MS PSS and whilst they have reproduced the issue they haven't yet yielded a fix for it (the PSS issue has been open since 23/02/11). All that's happened so far is that a new KB article recognising the problem has been issued:

Web服务可能无法在Microsoft Internet信息服务(IIS)7.5和Windows 7 Service Pack 1的使用.NET框架4.0由于扩展名的URL处理程序(KB2520479)

文章建议两个定位,其中第一个是无效的,而另一个是不完全理想的为我们的时刻。

The article suggests two fixes, the first of which is ineffective and the other isn't exactly ideal for us at the moment.

不过您遇到的问题可能实际上并不相关,但我想我反正分享。

However the problem you're experiencing may not actually be related but I thought I'd share this anyway.

这篇关于网站不是重定向到默认文档经典管道模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆