Server Error in '/' Application.

Discussion in 'Databases' started by Just Smile, Jan 19, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I face this problem when i try to log in to my website:


    Exception Details: .Data.SqlClient.SqlException: 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: 26 - Error Locating Server/Instance Specified)


    what should I do?




    please answer me.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    looks like the problem is that your application is trying to use a SQL Express database which doesn't exist.

    What does your connection string looks like in your web.config?

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. <membership defaultProvider="AspNetMembershipProvider">


    <providers>





    <add connectionStringName="AspNetServicesSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression="" name="AspNetMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>


    </providers>


    </membership>


    <profile>


    <providers>


    <remove name="AspNetSqlMembershipProvider"/>


    <add name="AspNetProfileProvider" connectionStringName="AspNetServicesSqlServer" applicationName="/" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>


    </providers>


    </profile>


    <roleManager enabled="true" defaultProvider="AspNetRoleProvider">


    <providers>


    <add connectionStringName="AspNetServicesSqlServer" applicationName="/" name="AspNetRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>


    </providers>


    </roleManager>
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    what does your connectionstring section look like?
     
  5. do you mean the connection string that i got when i bought the database?

    if yes, then here its:


    "Data Source=tcp:sql2k801.discountasp.net;Initial Catalog=SQL2008_586510_techno;User ID=SQL2008_586510_techno_user;Password=******;"
     
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