.net code has trouble connecting to database

Discussion in 'Databases' started by idatarm, Oct 16, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. goto the website
    http://www.davesinvoice.com/Users/Login.aspx
    it seems that the .net code could not find the server. it connects perfectly from both sql server 2008 and vs 2008. the connection string is
    <add name="Data.Properties.Settings.Decisions_92320ConnectionString"
    connectionString=
    "Data Source=tcp:sql2k802.discountasp.net;Initial Catalog=SQL2008_773684_decisions;User ID=SQL2008_773684_decisions_user;Password=*****" providerName="System.Data.SqlClient" />

    so, what is the problem?
     
  2. <add name="Data.Properties.Settings.Decisions_92320Conn ectionString"
    connectionString=
    "Data Source=tcp:sql2k802.discountasp.net;Initial Catalog=SQL2008_773684_decisions;User ID=SQL2008_773684_decisions_user;Password=*****" providerName="System.Data.SqlClient" />


    is there supposed to be a whitespace in "Data.Properties.Settings.Decisions_92320Conn ectionString"

    ?
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    no. you shouldn't have whitespace in your connection string.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page