我已将身份验证模式从“表单”更改为“Windows”,它看起来像这样:
<authentication mode="Windows"/>
<identity impersonate="true"/>
<authorization>
<deny users="?"/>
</authorization>
我这样做的原因是在 IIS 上检索当前登录的用户。但是,每次我调试我的项目时,我总是得到这个消息:
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /login.aspx
我不知道为什么它要求去 login.aspx 你能帮我吗?谢谢!