Ask a questionAsk a question
 

AnswerConnection String error

  • Tuesday, November 03, 2009 8:15 PMMDMoura Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,

    I deployed a web site to my hosting server and restored a database.
    However the web site cannot connect to the database.
    I also tried with Database Manager in IIS and the same happens.

    I am using the following connection string:
      <connectionStrings>
        <add
    name="BonsAlunos.Domain.Properties.Settings.BonsAlunosConnectionString"
             connectionString="Data Source=IP;Initial
    Catalog=BonsAlunos;User ID=BonsAlunos;Password=password"
             providerName="System.Data.SqlClient" />
      </connectionStrings>

    I get the error:

    A network-related or instance-specific error occurred while
    establishing a connection to SQL Server. The server was not found or
    was not accessible. Verify that the instance name is correct and that
    SQL Server is configured to allow remote connections. (provider: SQL
    Network Interfaces, error: 25 - Connection string is not valid)

    The user is defined in the sql server and I followed this article to
    solve the remote connections problem:
    http://www.linglom.com/2009/03/28/enable-remote-connection-on-sql-ser...

    Does anyone knows what might be wrong?

    I am not sure where to go from here.

    Thanks,
    Miguel

Answers

All Replies