Hi everyone,
I was able to connect to the database on my desktop. But where I publish the website (host: 1and1.com), I fail to connect to the database.
I use Linq to SQL. Which creates these connection lines in Web.config:
These worked perfectly fine in my desktop. But when I published the website, I was given this connection string:
Provider=sqloledb;Data Source=***.***.perfora.net,1433;Initial Catalog=db33333333;User Id=dbo33333333;Password=*****;
So, I changed the Web.config files to this:
It's not working! Please help!
Thanks!

Piotr Justyna70 reputationPosted Nov 28, 2009, 1:38 PM EST
I know that it may sound stupid, but have you changed the Web.config in the correct project in your solution? Is there a possibility to view your connection string before accessing DB and during debugging?
Cheers!
Salam6 reputationPosted Nov 29, 2009, 2:01 AM EST
Piotr Justyna70 reputationPosted Nov 29, 2009, 2:07 AM EST
Your solution can consist of many projects - are you sure, that you used the config file from a proper project? You can check it while debugging your application - just view the value of your connection string. I hope I'm more specific right now :)
Cheers!
Salam6 reputationPosted Nov 29, 2009, 2:25 AM EST
Piotr Justyna70 reputationPosted Nov 29, 2009, 7:21 AM EST
Cheers!