使用者 'IIS APPPOOL\ASP.NET v4.0' 的登入失敗。

Exception Details: System.Data.SqlClient.SqlException: 使用者 'IIS APPPOOL\ASP.NET v4.0' 的登入失敗。

解法

只要將 connection string 的整合式認證改成,指定帳密就可以了

网上有另一种解决办法:

通过IIS中的应用程式池,打开高级设置,修改标识为“LocalSystem” 或 "NetworkService", 此种方法也可解决,个人觉得会造成其它问题,推荐使用上面connection string方式。

相关文章:

  • 2022-12-23
  • 2022-01-24
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2021-08-04
  • 2021-11-04
猜你喜欢
  • 2021-09-27
  • 2021-11-13
  • 2021-10-22
  • 2022-12-23
相关资源
相似解决方案