![](/img/trans.png)
[英]ASP .NET httphandler for .pptx files not working in web.config
[英]ASP.NET HttpHandler access granting from web.config
我在<httpHandlers>
添加httpHandler:
<httpHandlers>
<add verb="*" path="someHandlerPath.ashx" type="Web.Framework.HttpHandlers.SomeHandler, Web.Framework, Version=1.0.0.0, Culture=neutral" />
</httpHandlers>
此外,我想授予<location>
所有用戶的訪問權限:
<location path="someHandlerPath.ashx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web></location>
但這是行不通的! 我如何也可以授予所有用戶訪問權限?
謝謝!
給出的信息不完整。 但是,在示例中,您沒有關閉位置標簽。 嘗試這樣寫:
<location path="someHandlerPath.ashx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
還要確保將其放在system.web標記之外。
抱歉,問題出在我們的web.framework中。 抱歉,抽出寶貴的時間! 謝謝!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.