System.Data.SqlClient.SqlException: Cannot open database "Northwind" requested by the login. The login failed. Login failed for user 'IIS APPPOOL\DefaultAppPool'.

System.Data.SqlClient.SqlException: Cannot open database "Northwind" requested by the login. The login failed. Login failed for user 'IIS APPPOOL\DefaultAppPool'.

In this quick post you will learn how to fix this issue.

Today in the morning when I was executing one of my web applications I fall in titled error and the same I’m sharing, that how I fixed this.

Open the IIS Manager and look at the image given below and follow the steps. Remember to select your web app from application pool list and then click on ‘Advanced Settings’.












Click the image to enlarge.

Comments

  1. Hi. Thank you very much for this solution. :)

    ReplyDelete
  2. i am getting the same problem.but not able to solve it after doing this

    ReplyDelete

Post a Comment

Popular posts from this blog

Migrating database from ASP.NET Identity to ASP.NET Core Identity

Customize User's Profile in ASP.NET Identity System