Error : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Int

Last post 07-26-2009 11:04 PM by chetan.sarode. 6 replies.

Sort Posts:

  • Error : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Int

    10-21-2008, 10:04 AM

    Hi All, i am using tha conncetion string in web.config.

    <add name="MyLocalSqlConnection" connectionString="Data Source=.\SqlExpress;AttachDbFilename=|DataDirectory|\SqlServer\OC00003SQL.mdf;User Instance=false" providerName="System.Data.SqlClient"/>

     Instance=false and true both i have used

     but i am getting error like that. on my web hosting site

     Error : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

     can u send me the solutions of that problem.

     

    Thanks in Advance.

    Dheeraj Mittal

    dhemittal@gmail.com

    Filed under:
  • Re: Error : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network

    10-21-2008, 2:49 PM
    • Member
      2 point Member
    • henropotter
    • Member since 10-21-2008, 5:25 PM
    • Posts 1

     I am getting the same error, does anyone have an update on this?

     

  • Re: Error : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network

    10-21-2008, 11:45 PM

    Set Try to set Data Source = "Server name" in connection string

    Open "SQL Server Surface Area Configuration"

    then opne the "Surface Area Configuartion for Services and Connections "

    Under the Remote connection u have to enable the "Using both TCP/IP and Named  Pipes "

    then It will work..

    Try to set Data Source= "serverName" in you connectionString

    Data Source=.\SQLEXPRESS will work only on local m/c, It will not work if you host your site

    Check in web.config for connectionString, configure it according to your server name, password etc.

    In Time Tracking System, it uses inbuild Membership classes for user creation, updation etc..

    You have to register your DB with ASP.NET Membership classes by executing the command line utility in VS prompt

    aspnet_regsql, it will open one window, where you  have to configure DB.

    Hope it will help you, let me know.

    Hope it will help you, let me know.

    http://forums.asp.net/t/1260556.aspx

    http://forums.asp.net/t/913172.aspx

    http://forums.asp.net/t/1008091.aspx

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
  • Re: Error : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network

    07-20-2009, 12:21 AM
  • Re: Error : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network

    07-20-2009, 12:22 AM

    Hi

    If you wants to know how to enable remote connections in sql server 2005 pls visit this

    http://aspnetmembershipprovider.blogspot.com/2009/02/eanble-remote-connections-on-instance.html

     

    Regards

  • Re: Error : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network

    07-22-2009, 11:05 PM

     Configure throgh SQL Server Management Configuration tools

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
  • Re: Error : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network

    07-26-2009, 11:04 PM

     Thanks for the information

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
Page 1 of 1 (7 items)