MVC解决方案发布IIS 登录页面需要输入两次帐号问题

IIS项目在本地VS2013 解决方案中正常登录可以进入.发布IIS时出现需要输入两次帐号密码进入主页面最终发现是web.config文件配置问题

web.config 默认配置

<authentication mode="Forms">
<forms loginUrl="~/Account/Login" timeout="2880" />
</authentication>

修改为:

<authentication mode="Windows" />

原文地址:https://www.cnblogs.com/zengdingding/p/5318168.html