在我的网络配置中
<authorization>
<deny users="?" />
<allow roles="Employee" />
</authorization>
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="2880" />
</authentication>
然后当我转到页面时
HTTP/1.1 302 Found
Cache-Control: private
Content-Type: text/html; charset=utf-8
Location: /Account/Login?ReturnUrl=%2f
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Tue, 23 Oct 2012 22:34:55 GMT
Content-Length: 145
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="/Account/Login?ReturnUrl=%2f">here</a>.</h2>
</body></html>
为什么 LogOn 不给我那个,而是给我登录?
IIS 7.5
网站是
- 经典ASP
- ASP.NET
使用表单 auth "hack"