I get this using this URL (my website setup through IIS):
http://localhost/dreamrishta/Default.aspx
Cannot open database "myDB" requested by the login. The login failed. Login failed for user 'R-2C02CDE60B8C4\ASPNET'.
But when I use Visual Studios built in server: localhost:3554/Default.aspx
It works fine and does not throw any error and gets all database values correctly. Does IIS need something to be changed to make this work?