IIS7 Login failed for user IIS APPPOOL\ASP.NET v4.0
2013-03-12 15:22
309 查看
After running a ASP.NET website on IIS 7.5 for the first time on a Windows 7 computer, I was faced with the following error message:
Login failed for user 'IIS APPPOOL\ASP.NET v4.0'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'IIS APPPOOL\ASP.NET v4.0'.
To fix this issue, try changing the (Process Model) Identity of your website’s Application Pool to use the NetworkService account (or the less secure LocalSystem account). By default, IIS7 seems to set the Application Pools Identity to ‘ApplicationPoolIdentity’, instead of NetworkService or LocalSystem.
Here’s a step-by-step guide to determining your websites Application Pool, then changing its Process Model Idenitty in IIS7:
Open Internet Information Services (IIS) Manger.
In the Connections sidebar, drill down into Default Web Site and click on your website.
Now in the Actions sidebar (on right side), click on Advance Settings… In the popup box, under General you will see your Application Pool listed for your website (in my case the app pool is: ASP.NET V4.0).
Click Cancel… If you choose, you can change the Application Pool here, but for the sake of this example we just wanted to find out what the website’s App Pool was.
Now that we know the Application Pool that is configured for are website, we now want to change the app pool’s (Process Model) Identity to ‘NetworkService’, here’s how:
Open Internet Information Services (IIS) Manger.
In the Connections sidebar, click on Application Pools.
Now right-click on theApplication Pool that your website is using (in this case my site is using the ASP.NET v4.0 application pool), and select Advanced Settings… from the menu.
In the Advanced Settings pop-up box, locate the Process Model -> Identity section and click on the Application Pool Identity.
In the Application Pool Identity pop-up box, change the Built-in account to NetworkService (or if you want LocalSystem), then click OK, and click OK again to save your Advanced Settings changes.
After changing the Application Pool’s Identity to NetworkService (or LocalSystem) you should now be able to get your ASP.NET site to run successfully on a IIS7 web server.
Source from http://www.gotknowhow.com/articles/fix-login-failed-for-user-iis-apppool-aspnet-v4-error-iis7
相关文章推荐
- iis7 发布mvc3 遇到的HTTP错误 403.14-Forbidden Web 服务器被配置为不列出此目录的内容及Login on failed for "IIS APPPOOL\ASP.NET v4.0"问题
- iis7 发布mvc3 遇到的HTTP错误 403.14-Forbidden Web 服务器被配置为不列出此目录的内容及Login on failed for "IIS APPPOOL\ASP.NET
- iis7 发布mvc3 遇到的HTTP错误 403.14-Forbidden Web 服务器被配置为不列出此目录的内容及Login on failed for "IIS APPPOOL\ASP.NET v4.0"问题
- Cannot open user default database. Login failed. Login failed for user 'Machine/ASPNET'
- Login failed for user computer\ASPNET
- Cannot open user default database. Login failed. Login failed for user 'ERPSERVER\ASPNET'.
- System.Data.SqlClient.SqlException: Login failed for user 'IIS APPPOOL\DefaultAppPool' in IIS7
- Login failed for user 'IIS APPPOOL\DefaultAppPool'
- 在创建从 ASP.NET 到 SQL Server 的受信任数据连接时出现错误消息:“Login failed for user:'AccountName'”(用户 'AccountName' 登录失败)
- how to prevent multiple login for same user in asp.net
- 用户 'IIS APPPOOL\ASP.NET V4.0' 登录失败 解决办法…………
- 当前标识(IIS APPPOOL\ASP.NET v4.0)没有对“C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files”的写访问权限 解决方案
- user 'IIS APPPOOL\ASP.NET v4.0' error in IIS7问题的解决方法
- VS2012 发布网站报错 当前标识(IIS APPPOOL\ASP.NET v4.0)没有对“C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temp
- 用户 'IIS APPPOOL\ASP.NET v4.0' 登录失败 怎么解决
- 解决IIS中Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
- IIS APPPOOL\ASP.NET v4.0登入失敗
- Login failed for user 'sa'. (Microsoft SQL Server, Error: 18456)
- 消息 18456,级别 14,状态 1,第 1 行 Login failed for user 'sa'.
- SSIS Hresult: 0x80040E4D Description: Login failed for user sa