I am executing a stored procedure in an asp.net application hosted in local IIS . I am using SQL LocalDB v11.0 for my database . Here is my connection string
connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=IntMonkey;MultipleActiveResultSets=True;"
When I run my code it gives error
Cannot open database "IntMonkey" requested by the login. The login failed.
Login failed for user 'IIS APPPOOL\DefaultAppPool'.
My application pool is set to DefaultAppPool . I tried to set identity to Network Service and Local System but same error for those users. I have created Logins for [IIS APPPOOL\DefaultAppPool] , [NT AUTHORITY\NETWORK SERVICE] , [IIS APPPOOL\ASP.NET v4.0] and assign User Mapping to this database with roles as db_owner , db_writer and db_reader but still not working. It works fine when running without IIS.
Need help what I am doing wrong ?