1、安装vs2015后,以前做的项目中Forms身份验证,竟然不能使用了

  HTTP 错误 401.0 - Unauthorized 的解决方案

2、打开当前项目属性,将windows身份验证属性改为启用

  HTTP 错误 401.0 - Unauthorized 的解决方案

3、vs2015生成的mvc项目中,webconfig缺失authentication节点,补上

  <system.web>
    <compilation debug="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />
    <authentication mode="Forms">
      <forms loginUrl="~/Account/Login" timeout="2880" />
    </authentication>
  </system.web>

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
猜你喜欢
  • 2021-11-22
  • 2021-09-06
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
相关资源
相似解决方案