Connect to the database.

Discussion in 'ASP.NET / ASP.NET Core' started by schoolarea, Mar 22, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I recently learning how to create a login page for my web site. However, It only appear to work on my local web but not on the web. I want to know how to connect the data base. I got the connect string but I am not sure where do I put it.
    I got the error:
    Line 146: <membership>
    Line 147: <providers>
    Line 148: <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
    Line 149: </providers>
    Line 150: </membership>

    Thank again for all your help.
     
  2. Hi,
    In your web.config file, try adding this:

    <connectionStrings>
    <remove name="LocalSqlServer"/> (Might not need this line, depending on your config)
    <add name="LocalSqlServer" connectionString=<Insert your ConnectionString details> providerName="System.Data.SqlClient"/>

    </connectionStrings>
     
  3. pinkpanther

    pinkpanther Guest

    Connect to the database

    hi sorry iam new, where should i put all that?
    thanks a lot
     
  4. ...The posts in this thread are referring to the web.config connection string settings.
    Do you need help with that?
     
  5. findcausene

    findcausene chas28

    error 26 fix

    I would like to use your recommendation and use the following code to remove error 26 but I don't know how to find my ConnectionString.
    What is my ConnectionString?
    ************************
    <connectionStrings>
    <remove name="LocalSqlServer"/> (Might not need this line, depending on your config)
    <add name="LocalSqlServer" connectionString=<Insert your ConnectionString details> providerName="System.Data.SqlClient"/>

    </connectionStrings>
    ***********************
    Thanks in advance for any help.
     
  6. ...The connection strings are an XML setting in ASP.NET web.config files.
    In each DASP account once you have provisioned a SQL Server the connection string for your account is listed in your DASP Control Panel.
     
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