I am new to IIS and MS SQL Server (coming from a Apache MySQL Environment) so hopefully I will include enough details for you guys to help me!
I am converting my web app from using hard coded database credentials (currently SA :/ ) in the Connection String in web.config.
I removed the username and password and put in "Integrated Security=SSPI". The website is configured with a dedicated app pool and that app pool Identity is set to the domain account I want it to use. When I attempt to use the web app I get an error. When I look into the SQL Server logs I see "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. Reason: Could not find a login matching the name provided.
Any ideas on what I am doing wrong?
NT AUTHORITY\ANONYMOUS LOGON. You could add that login to SQL Server, but it's probably a very bad idea. I'd go back to SQL authentication in your web.config. Just don't usesa(or any other login with sysadmin permissions). - Dave Mason