2 Replies - 996 Views - Last Post: 08 July 2012 - 10:08 AM

#1 mann4web  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 08-July 12

Problem with database on server but its working well on localhost.

Posted 08 July 2012 - 07:05 AM

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?

Is This A Good Question/Topic? 0
  • +

Replies To: Problem with database on server but its working well on localhost.

#2 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3719
  • View blog
  • Posts: 5,991
  • Joined: 08-June 10

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.

This post has been edited by Atli: 08 July 2012 - 07:18 AM

Was This Post Helpful? 0
  • +
  • -

#3 Ionut  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 385
  • View blog
  • Posts: 1,057
  • Joined: 17-July 10

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
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1