I published my website using IIS and now when I browse to my website it is working properly but not connecting to the database so it always shows a login failure. I've checked my connection string in web.config file and it is right.
What could be causing this?