where can I find the user in this IIS error 'Login failed for user 'IIS APPOOL\Web2'
Posted
by
Jack
on Server Fault
See other posts from Server Fault
or by Jack
Published on 2012-08-29T03:27:59Z
Indexed on
2012/08/29
3:40 UTC
Read the original article
Hit count: 539
I encounter the following error:
Cannot open database "testbase" requested by the login. The login failed.
Login failed for user 'IIS APPPOOL\Web2'.
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: Cannot open database "testbase" requested by the login. The login failed.
Login failed for user 'IIS APPPOOL\Web2'.
So, where can I give this user Web2 permission? (By the way, the server do not have such user Web2
but there is a folder called Web2
located at the wwwroot folder.)
I search for answers but all failed as follows:
[1] Add the user IUSR
to the folder and give it read permission.
[2] http://www.codekicks.com/2008/11/cannot-open-database-northwind.html
© Server Fault or respective owner