转载:http://blog.csdn.net/wenjie315130552/article/details/7246143

 

问题是应用程序连接池的问题。网上有些朋友说是Temp文件夹的权限的问题。也许有其它的情况是那样产生的。 
本问题的特征是:数据库是SQL Server Express、程序在VS中调试成功,但是在在IIS中产生类似如下的问题 
------------------------------------------------ 
无法打开登录所请求的数据库 "dbName"。登录失败。 
用户 'IIS APPPOOL\DefaultAppPool' 登录失败。
 
------------------------------------------------ 
解决方案 
1、先查看你的网站使用的是哪个应用程序池

用户 'IIS APPPOOL\DefaultAppPool' 登录失败【收藏】

2、设置应用程序池的选项

用户 'IIS APPPOOL\DefaultAppPool' 登录失败【收藏】

用户 'IIS APPPOOL\DefaultAppPool' 登录失败【收藏】

这里只要选LocalSystem或NetworkService就可以解决问题

 

相关文章:

  • 2022-01-24
  • 2022-12-23
  • 2021-10-27
  • 2021-11-04
  • 2021-12-19
  • 2021-05-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
  • 2021-10-22
  • 2022-12-23
相关资源
相似解决方案