Bootstrap FreeKB - Visual Studio - Resolve "Cannot open database requested by the login"
Visual Studio - Resolve "Cannot open database requested by the login"

Updated:   |  Visual Studio articles

Follow these directions to fix error 'Cannot open database requested by the login" in Visual Studio.

  1. Sign into SQL Server Management Studio (SSMS) using Windows Authentication.
  2. In Object Explorer, expand Security.
  3. Right-click on the Logins folder and select New Login.
  4. In the Login - New pop-up box, type IIS APPPOOL\\ASP.NET v4.0 in the Login name field.
  5. Select User Mapping. Check-mark the databases being used in Visual Studio, and also check-mark db_reader and db_writer.
  6. Select OK.



Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 7b4b27 in the box below so that we can be sure you are a human.