WindowsAuthentication で遊んでみたいのですが、最初のハードルで落ちているようです。
そこで、空の ASP.Net Webforms アプリを作成し、web.config を次のように修正しました。
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<httpRuntime/>
<authentication mode="Windows" />
<identity impersonate="true"/>
</system.web>
</configuration>
アプリを起動し、ページの読み込み時に次の値を確認します。
HttpContext.Current.User.Identity.Name
HttpContext.Current.User.Identity.IsAuthenticated
しかし、空の文字列を返します (また、それが falseであることも示しています)。
私の期待は、私のWindowsアカウント名が返されるのを見ることでした.mydomain\rob
どこが間違っていますか?