HttpContext.Current.User is null even though Windows Authentication is on

后端 未结 4 1201
夕颜
夕颜 2020-12-15 18:56

In IIS7 under Windows Server 2008, I have a virtual directory with anonymous access off and Windows authentication on. In my web.config, I have:



        
4条回答
  •  感动是毒
    2020-12-15 19:10

    II7 has integrated authentication. You can set it back to the old type by changing the Application Pool back to classical in the basic settings in IIS.

    *Caution this is just an explanation and example, you may want to use the integrated authentication and do something different.

提交回复
热议问题