Connection string in hosting server

I am using the following connection string in web.config file for my application where both web server( Win 2003) and database server (sql 2005 EE) are running in the same machine.

Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|Database.mdf;Integrated Security=true;User Instance=true

Now I am shifting my application to hoisting server.

Web server (Win 2003) IP address is : 218.248.240.15
and database server IP address is : 218.248.240.16

Accordingly I have changed my connection string to
add name="bsnletpdb" connectionString="Data Source=218.248.240.16;
Initial Catalog =ContentData.mdf;
User Id=bsnletpdb;
Password=myPassword"
providerName="System.Data.SqlClient"

but I am getting the following error

Server Error in '/' Application.

Please help me to sort out the problem

0 answers