publishing membership from local host to web site

Discussion in 'ASP.NET 2.0' started by cae, Dec 9, 2008.

  1. cae

    cae

    I set up membeship [adding roles using web admin tool etc...] all working fine at localhost but when I publish it to web it gives error. Below links were suggested but not clear for me. I opened the command prompt but not familiar with dod prompts, could not do the steps. Is this the only way if yes, can somebody give more details or better way to do this. Basically all what to do with membership is working fine at local host but not sure how to make it work on web.

    1. Open the command prompt on your local computer, and navigate to: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
    2. Execute the command: aspnet_regsql.exe -S DBServerName -U DBLogin -P DBPassword -A all -d DBName

    Please view "http://kb.discountasp.net/article.aspx?id=10417" on this error. If you are setting up membership roles please view "http://kb.discountasp.net/article.aspx?id=10413".


    I used Visiual 2008 to set up users
     
  2. If your only database is the ASP.NET membership database, an easier way to do this is to take your ASPNETDB.MDF database file and attach it to your DiscountASP SQL database. You will still need to make the connectionStrings changes to your web.config though.

    This KB article has more info on how to do an attach: http://kb.discountasp.net/article.aspx?id=10431








    Aristotle

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. cae

    cae

    Thank you for the reply. I really do not have any databases and will use this only for memebership but being told still need to first activate $10 month sql database option. So checking other options right now. I understand paying for databases extrabut I think you should be able to use login feature with user roles within the price of web hosting.
     

Share This Page