IIS 7 では、以下のセクションを使用してアプリケーションを構成すると、401 エラーが発生します。
<authentication mode="Windows" />
<authorization>
<deny users="?" />
</authorization>
以下のセクションを追加すると、正常に動作します。では、web.config に両方のセクションが必要ですか。
<system.webServer>
<security>
<authentication>
<anonymousAuthentication enabled="false" />
<windowsAuthentication enabled="true" />
</authentication>
</security>
</system.webServer>