Membership and roles provider

Discussion in 'ASP.NET / ASP.NET Core' started by GeekO, May 16, 2008.

  1. I have developed a website using Visual Studio 2008 with roles. The site works perfect locally. Now i have used the copy feature and copied over the website to asp.net, i used the sql tools and attached the MDF. First i was getting the error where the membership provider was looking for LocalSqlServer so i added these two lines to the <connections>
    <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' />

    This fixed the main error so the age will show but i still cannot login without an error and when i try to view other pages which deal with membership and roles i also get errors. Is there something special i have to do to change from localhost to remote server? Any ideas?
     
  2. Bruce

    Bruce DiscountASP.NET Staff

  3. I got it fixed, i had two different ms sql users created and used the wrong password with the wrong user.
     
  4. Bruce

    Bruce DiscountASP.NET Staff

  5. Hello, I apologize for bringing up an old thread.

    I followed the link and it created the tables and all the other good stuff. When I use the website administration tool, it does not like the username (the DASP one), so i cant insert any users or do any membership stuff. when i goto the provider page, it has the AspNetSqlProvider selected, but it says it cannot connect to the database. I'm certain the connection string in my web.config is correct because I'm able to see my data on the live page (that needs to be protected). FWIW, the LocalSqlServer has the same information.

    What might I be missing or doing wrong?
     
  6. second time tonite. Silly me. the password was wrong in the string.
     

Share This Page