Hi, I have developed a small website for online advertisement. I've used sql server 2008 database in it. It is working well on localhost as I wanted but when I deployed it on server it's not able to access the database. I know the connection string is required to be changed according to server and I changed it in web.config file. Except this I haven't used the connection string anywhere in my web application. But still I am not able to access database.
Someone suggested me to update the connection string of the database but I don't know how to do it?
2 Replies - 782 Views - Last Post: 08 July 2012 - 10:08 AM
#1
Problem with database on server but its working well on localhost.
Posted 08 July 2012 - 07:05 AM
Replies To: Problem with database on server but its working well on localhost.
#2
Re: Problem with database on server but its working well on localhost.
Posted 08 July 2012 - 07:17 AM
Hey.
What does your current connection string look like? (The one that works on localhost.)
Do you know any details about the production server, like if the SQL Server is located on a different host, what the URL of that host would then be, and what kind of authentication method is being used? All of that is important if you want to get the connection string right.
What does your current connection string look like? (The one that works on localhost.)
Do you know any details about the production server, like if the SQL Server is located on a different host, what the URL of that host would then be, and what kind of authentication method is being used? All of that is important if you want to get the connection string right.
This post has been edited by Atli: 08 July 2012 - 07:18 AM
#3
Re: Problem with database on server but its working well on localhost.
Posted 08 July 2012 - 10:08 AM
Probably the server is misconfigured. Post the exact error so I may have a chance to help you
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote




|