ASP.Net被重定向到登录页面

时间:2017-05-11 06:24:26

标签: asp.net forms webforms

我的ASP.Net 4.5.2 Webforms网站运行得很好。从最近两天开始,我401 Unauthorized获取所有静态文件。我没有对网站代码进行任何更改。我尝试重新安装IIS但仍然没有成功(IIS 10 / Win10)

以下是我的根authentication

中的web.config
<authentication mode="Forms">
    <forms loginUrl="/l/login" timeout="28400" />
</authentication>

enter image description here

1 个答案:

答案 0 :(得分:0)

请打开Windows文件浏览器,添加&#34; Authenticated Users&#34;到应用程序文件夹安全设置。