Click here to Skip to main content
15,911,786 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear,
I configure the website with iis server it is working when i open the browser and type the address of my website.but when I try to attampte to login with sql server database than following type of exception id thrown.

Cannot open database "cmcdb" requested by the login. The login failed. Login failed for user 'IIS APPPOOL\DefaultAppPool'.

please help me.
Posted

1 solution

You have to grant access to the database, follow this link : http://technet.microsoft.com/en-us/library/ms172405%28v=sql.105%29.aspx[^]
 
Share this answer
 
Comments
Deepak Kr Choudhary 2-Sep-12 2:28am    
not working it gives the same exception
Mehdi Gholam 2-Sep-12 2:34am    
Try removing and adding again.
Wendelius 2-Sep-12 2:36am    
Good link! 5
Mehdi Gholam 2-Sep-12 2:44am    
Thanks Mika!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900