Membership web.config problem

Discussion in 'ASP.NET / ASP.NET Core' started by Merv Norton, Jan 18, 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 am trying to get a Membership Login to work. I have gotten a lot of support from DISCOUNT.ASP but they can not help any more. I have a problem with the connection strings in the web.config file. I entered the necessary info according to instructions from DISCOUNT.ASP. The instructions were:

    <connectionStrings>
    <remove name="LocalSqlServer" />
    <add name="LocalSqlServer" connectionString="Data Source=DBServerName;Integrated Security=false;Initial Catalog=DBName;User ID=DBLogin;Password=DBPassword" providerName="System.Data.SqlClient" />
    </connectionStrings>

    This is the connection strings I created.

    <connectionStrings>
    <remove name="LocalSqlServer" />
    <add name="LocalSqlServer" connectionString="Data Source=sql2k506.discount.net;
    Integrated Security=false;Initial
    Catalog=SQL2005_xxxx_xxx;
    User ID=SQL2005_xxx_xx_user;Password=xxxxx"
    providerName="System.Data.SqlClient" />
    <connectionStrings/>

    I now get the following error message:

    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: The 'connectionStrings' start tag on line 17 does not match the end tag of 'configuration'. Line 104, position 123.

    Source Error:

    Line 102: <dependentAssembly>
    Line 103: <assemblyIdentity
    name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>

    Line 104: <bindingRedirect oldVersion="1.0.0.0-1.1.0.0"
    newVersion="3.5.0.0"/></dependentAssembly></assemblyBinding></runtime>
    </configuration>

    Source File: D:\Brigade ASP Test\web.config Line: 104
    I can send the entire Web.config file if necessary.

    I expect that there is something wrong with the connection strings. I tried to create it the best that I could.
    Your assistance is greatly needed. I think that I am almost there.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    The connection string should be a single line. It looks like you broke it into multiple lines.

    I also removed your database name / login/ password in the original post.
     
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