例外部署到IIS时:用户登录失败“IIS APPPOOL \默认应用” [英] Exception when deploying to IIS: Login failed for user 'IIS APPPOOL\DefaultAppPool'

查看:813
本文介绍了例外部署到IIS时:用户登录失败“IIS APPPOOL \默认应用”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过Windows通信基础4分步实施的一些例子WCF工作。我得到的应用程序运行的罚款,只要服务承载于卡西尼。当我部署服务,以本地IIS失败。当部署到IIS,我可以浏览到IE中的SVC页面。这一工程。

I'm working through some WCF examples in "Windows Communication Foundation 4 Step By Step". My resulting application runs fine as long as the service is hosted in casini. It fails when I deploy the service to local IIS. When deployed to IIS, I can browse to the svc page in IE. That works.

据该书第41页,应用程序池帐户必须是在我的数据库中的db_owner角色的成员。笔者建议,验证服务的正确地址后(已经这样做),检查应用程序池帐户的权限。

According to the book, page 41, the app pool account needs to be a member of the db_owner role in my database. The author suggests, after verifying the correct address of the service (already did that), checking the permissions of the app pool account.

如何确认哪些帐户用于应用程序池的托管我的WCF服务?目前使用默认的应用程序池和IIS APPPOOL \默认应用在db_owner角色。 IIS APPPOOL \ ASP.NET v4.0的也是db_owner角色。

How do I verify which account is used by the application pool hosting my WCF service? Currently using the default app pool and IIS APPPOOL\DefaultAppPool is in the db_owner role. IIS APPPOOL\ASP.NET v4.0 is also in the db_owner role.

唯一的例外是...

System.Data.SqlClient.SqlException: Login failed for user 'IIS APPPOOL\DefaultAppPool'.

我要如何解决这个问题?谢谢!

How do I troubleshoot this issue? Thanks!

推荐答案

溶液中发现这里

  • 开启IIS
  • 双击下连接的计算机的名称
  • 单击应用程序池
  • 选择您的应用程序池(默认应用)
  • 然后在右侧单击高级设置操作,
    • 转到进程模型节和
    • 单击身份。
    • 现在,选择网络服务。
    • Open IIS
    • double click your PC name under Connections
    • Click Application Pools
    • Select your app pool (DefaultAppPool)
    • Then under actions on the right click Advanced Settings,
      • Go to Process Model section and
      • click on Identity.
      • Now select NetworkService.

      这篇关于例外部署到IIS时:用户登录失败“IIS APPPOOL \默认应用”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆