sqlMembershipProvider tables corrupted

Last post 07-04-2009 9:47 AM by jdemarco@thehopegroup.com. 1 replies.

Sort Posts:

  • sqlMembershipProvider tables corrupted

    07-02-2009, 4:41 PM

     I have a site that uses sqlMembershipProvider and I get the error "invalid cast exception."  The tables and stored procedures were originally created using regsql.exe.  I read that the solution is to re-create the membership tables.  I'm looking for a good way to do this without damaging the rest of my site.  Can I just rerun regsql.exe on the data store?

  • Re: sqlMembershipProvider tables corrupted

    07-04-2009, 9:47 AM
    Answer

    I was able to re-create the membership tables using aspnet_regsql.exe -R followed by aspnet_regsql.exe -A.  Had to clear the membership, users-in-roles aspnet_users and roles tables 

Page 1 of 1 (2 items)