CastleProject * .vm HttpForbiddenHandler无法正常工作 [英] CastleProject *.vm HttpForbiddenHandler not work

查看:247
本文介绍了CastleProject * .vm HttpForbiddenHandler无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用HttpForbiddenHandler阻止没有成功的文件。在web.config如下:

I try to use HttpForbiddenHandler to block the file without success. The web.config is as follows:

<httpHandlers>
<add verb="*" path="*.ashx" type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory, Castle.MonoRail.Framework"/>
<add verb="*" path="*.vm" type="System.Web.HttpForbiddenHandler"/>
</httpHandlers>

我已经设置虚拟目录转发.vm请求ASPNET_ISAPI.DLL了。基本上我已经按照本指南:
http://support.microsoft.com/kb/815152

任何想法,为什么它不工作?我使用Windows XP + IIS 5.1来测试它。

Any idea why it doesn't work? I am using Windows XP + IIS 5.1 to test it.

更新:<击>进一步诊断测试推着我到地狱。我尝试删除的.config在ISAPI列表绑定,如预期的文件送达。在我加入,而不是显示尚未送达文件类型一切都回来了,这一次,它显示我'没有HTTP处理程序被发现的请求类型'GET'!我彻底生气了,就是刚刚IIS 5.1的XP或我做有鬼?不,我只是害怕自己的这 - 当我解决我试着使用删除所有HttpHandlers的。但.vm不被堵塞的问题仍然存在。

Update: Further diagnostic test pushing me to hell. I try to delete .config binding in ISAPI list, as expected the file is served. The I add everything back, and this time, instead of showing 'File type not served', it shows me 'No http handler was found for request type 'GET' ! I am completely pissed off, is that just IIS 5.1 for XP or I did something fishy?No I just scared myself on this- when I troubleshoot I tried to remove all httpHandlers using . But the .vm not being blocked issue still exist.

推荐答案

忽略这一项。页面缓存伤害。

Ignore this one. Page cache hurts.

这篇关于CastleProject * .vm HttpForbiddenHandler无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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