User-1071894543 posted
1. Replace the application pool account to an application user (instead of NETWORK_SERVICES) and give it's password
2. Add the account to IIS_WPG users group on your app server
3. Grant the user with the needed permissions on the database
4. Don't change the web.config (You shouldn't impersonate, if you did, change it back)