+1-888-365-2779
Try Now
More in this section

Forums / Installation / Error trying to initialize Membership Services!

Error trying to initialize Membership Services!

6 posts, 0 answered
  1. Angel L Vazquez
    Angel L Vazquez avatar
    1 posts
    Registered:
    16 Oct 2006
    19 Oct 2006
    Link to this post
    I just installed Sitefinity locally on my dev machine using an external SQL Server 2000 db, created my project , when I go to edit I get the error: Error trying to initialize Membership Services! 

    I set the project to create the member tables in the same database, what am I missing?
  2. Paul Kavanagh
    Paul Kavanagh avatar
    13 posts
    Registered:
    05 Oct 2005
    25 Jan 2007
    Link to this post
    Similar issue. I have a portal that is working fine. I need to create another portal that is very similar, so I tried the following:
     - copy code into new folder, create iis site pointing to that folder
     - copy db from original portal into a new db
     - modify web.config file in new portal to point to new database (both places in web.config were changed, verified that login works against the new database)

    I get the aforementioned error. Should I be able to do what I am trying to do? Any ideas on what is wrong?

    Thanks!!

    Paul
  3. Hrisi
    Hrisi avatar
    34 posts
    Registered:
    17 Sep 2016
    26 Jan 2007
    Link to this post
    Hello Paul,

    From your question it is not clear which Sitefinity version and what kind of database is used. Nevertheless, I would like to mention some important details about  project configuration.
    Sitefinity relies on a well configured db. This mean the following:
    • for file based databases such as Access, the ASPNET process should have r/w permissions for the folder containing the db file;
    • for SQL Server you should check if all db objects, related to Sitefinity and Membership services have dbo as owner. As a result, login from Web.config should work with all objects.

    If you have any specific info for your project, please tell us to further clarify the initial project configuration.

    Best wishes,
    Hrisi
    the telerik team
  4. Paul Kavanagh
    Paul Kavanagh avatar
    13 posts
    Registered:
    05 Oct 2005
    26 Jan 2007
    Link to this post
    The version is 2.7.1. The database is sql server. To copy the database, I did a restore on the database that is used for the existing working copy of sitefinity. So, all of the objects, permissions, logins, etc., are exactly the same. I also verified this my manually logging into the db using the login info specified in the connections strings of the web.config of the working copy, and by looking at the new database to ensure that all objects are there. All objects have dbo as owner.

    So, as far as I can tell, other than having a different db name, the two databases are exactly identical.
  5. Hrisi
    Hrisi avatar
    34 posts
    Registered:
    17 Sep 2016
    26 Jan 2007
    Link to this post
    Hello Paul,

    One possible reason is a different SQL Server login account and database user account. Restoring the database  restores only the database user account and for SQL Server 2000 there is no way to create a login account from a user account (map user to login). You should create a new login account, grant the access rights to the Sitefinity project database and make it a db_owner. After that, change in your Web.config, UID/PWD with the login account info in both places.

    If you are using an SQL Server connection with windows authentication, probably the ASPNET account does not have permissions for the database: there is no impersonation and the account which is trying to connect to the database is the ASPNET account. So please, make sure that the ASPNET account has permissions to the database. Don't forget to restart the ASP.NET application so that changes take effect.

    You can find more details about "Error Trying to initialize Membership Services" in this KB article.

    Sincerely yours,
    Hrisi
    the telerik team
  6. Paul Kavanagh
    Paul Kavanagh avatar
    13 posts
    Registered:
    05 Oct 2005
    26 Jan 2007
    Link to this post
    Thanks! Ug... I recopied the web.config from the original instance, change the db name (I had already added the correct login to the DB) and voila! I must have had an error in the webconfig or something along those lines. Have to remember, simplest things first.

    Anyway, thank you for the help.

    Paul
6 posts, 0 answered