Forms Authentication 無法限制非 aspx 檔的問題
於 web.config 中增加<configuration>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
</system.webServer>
.
.
.
</configuration>
如此即可忽略 precondition="managedHandler" 的屬性設定,才能讓Forms Authentication不只管Managed resources,讓它也管non-managed resources。
Reference:
http://charlesbc.blogspot.com/2009/01/iis-7-formsauthentication-jpg.html
http://learn.iis.net/page.aspx/243/aspnet-integration-with-iis-7/
頁:
[1]