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 JustynaPosted Nov 29, 2009, 12:21 PM
Cheers!
SalamPosted Nov 29, 2009, 7:25 AM
Piotr JustynaPosted Nov 29, 2009, 7:07 AM
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!
SalamPosted Nov 29, 2009, 7:01 AM
Piotr JustynaPosted Nov 28, 2009, 6:38 PM
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!