我在Windows Server 2012上部署了一个.Net应用程序。 没有启用身份validation(使用匿名身份validation)时,应用程序正常工作。 当我启用基本身份validation时,站点redirect到一些帐户/login***页面(已设置适当的Default Document )。
该问题类似于链接http://forums.iis.net/t/1228477.aspx?Basic+Authentication+in+IIS8中的问题 。 我在web.config文件中尝试了以下设置,但没有运气。
<authentication mode="Windows"/> <authorization> <allow users="*"/> </authorization> <appSettings> <add key="autoFormsAuthentication" value="false" /> <add key="enableSimpleMembership" value="false"/> </appSettings>
有人遇到这个,知道如何解决它? 任何帮助表示赞赏!