更新时间:2022-06-08 09:11:42
您需要将网络服务用户添加到SQL数据库中的授权用户。
You need to add the Network Service user to the authorized users in the SQL database.
在ApplicationPoolIdentity下你会找到本地系统。这将使您的应用程序在NT AUTHORITY \ SYSTEM下运行,默认情况下这是数据库的现有登录。
http://***.com/questions/7698286/login-failed-for-user-iis- apppool-asp-net-v4-0 [ ^ ]
,所以只需选择应用程序池 - >泳池入口 - >高级设置...(来自编辑应用程序池部分) - >过程模型(来自高级设置对话框)
http:/ /forums.asp.net/t/1510479.aspx [ ^ ]
http ://blog.igorware.com/login-failed-for-user-iis/ [ ^ ]
http://www.aspdotnet-suresh.com/2011/05/systemdatasqlclientsqlexception-login.html [ ^ ]
just问题是你有没有权限使用数据库的用户......:)
Under ApplicationPoolIdentity you will find local system. This will make your application run under NT AUTHORITY\SYSTEM, which is an existing login for the database by default.
http://***.com/questions/7698286/login-failed-for-user-iis-apppool-asp-net-v4-0[^]
, So just select Application Pool -> a pool entry -> Advanced Settings... (from Edit Application Pool section) -> Process Model (from Advanced Setting dialog box)
http://forums.asp.net/t/1510479.aspx[^]
http://blog.igorware.com/login-failed-for-user-iis/[^]
http://www.aspdotnet-suresh.com/2011/05/systemdatasqlclientsqlexception-login.html[^]
just the matter is you have the user which does not have authority to use the database,......:)