Server Error in '/' Application.
--------------------------------------------------------------------------------
Unable to open the database "xxxxxx" requested by the login. Login failed.
User ' IIS apppool\xxxxxxxxxxxx logon failed.
Or an error message like this:
Exception Details: System.Data.SqlClient.SqlException: User ' IIS apppool\xxxxxxxx ' logon failed.
In Visual Studio 2010 Debug mode, there is no problem configuring the IIS error. The reason is a permissions issue.
In IIS default is not allow window integrated login, change account password to log on no problem, the server name is best to fill in the IP address/instance name format, so as not to error.
1. If the application's connection string is Windows integrated login, change it to a username password to log in
2. In IIS Manager--"Application pool--" ASP. V4.0 ———— "Advanced Settings-" logo--"changed to LocalSystem
User "IIS apppool\xxxxxxxx" Logon Failure solution