Hello ismcagdas Thanks for your reply.
I got it working at last. The Load Profile is set as false. And the problem gone.
Also I needed to add a SQL login for the IIS Apppool user.