Login failed. Login failed for user "IIS APPPOOL \ ASP.NET v4.0"

I uploaded my site to IIS 7 Windows Server 2008. Everything is working fine. My site also uses a database SQLto keep track of users. But when I try to log in, I get the following error.

 Cannot open database "MyCoolDb" requested by the login. The login failed.
 Login failed for user 'IIS APPPOOL\ASP.NET v4.0'.

 Ausnahmedetails: System.Data.SqlClient.SqlException: Cannot open database   
 "MyCoolDb"     
 requested by the login. The login failed.
 Login failed for user 'IIS APPPOOL\ASP.NET v4.0'.
+3
source share
2 answers

You can add this user to your database logins by opening SQL Management Studio, go to your database, then open Security, then Logings and add a new login and search for this user.

+4
source

with a link to this link: Login failed for user "IIS APPPOOL \ ASP.NET v4.0"

IIS APPPOOL\ASP.NET v4.0, " SQL Server Management Studio"

+1

All Articles