認証モードを「フォーム」から「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 に移動するように求められている理由がわかりません。助けていただけますか? ありがとう!