I've been setting up a local dev environment from a production SharePoint 2010 site and have got everything working except for the registration. I've installed visigo.sharepoint.formsbasedauthentication.wsp and got the login working fine. The registration is using the MembershipRequestWebPart.
After submitting the registration form, the same page is shown but the querystring is now showing ?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252F%255Flayouts%252FAccessDenied%252Easpx&Source=%2F_layouts%2FAccessDenied%2Easpx
Using the ULS Viewer I see the following lines that are associated with the error:
03/07/2013 15:09:32.77 w3wp.exe (0x0B20) 0x0F58 SharePoint Foundation General 8e2s Medium Unknown SPRequest error occurred. More information: 0x80070002 35e65a3c-6d20-4bf2-8cf5-398847c2fc51
03/07/2013 15:09:33.61 w3wp.exe (0x0B20) 0x0F58 SharePoint Foundation General 8e2s Medium Unknown SPRequest error occurred. More information: 0x80070005 35e65a3c-6d20-4bf2-8cf5-398847c2fc51
03/07/2013 15:09:33.65 w3wp.exe (0x0B20) 0x0F58 SharePoint Foundation General 8e2s Medium Unknown SPRequest error occurred. More information: 0x80070002 35e65a3c-6d20-4bf2-8cf5-398847c2fc51
03/07/2013 15:09:33.65 w3wp.exe (0x0B20) 0x0F58 SharePoint Foundation General 8e2s Medium Unknown SPRequest error occurred. More information: 0x80070002 35e65a3c-6d20-4bf2-8cf5-398847c2fc51
03/07/2013 15:09:33.72 w3wp.exe (0x0B20) 0x0F58 SharePoint 2010 FBA Pack General 0000 High System.Exception: Thread was being aborted. at Visigo.Sharepoint.FormsBasedAuthentication.MembershipRequest.ApproveMembership(MembershipRequest request, SPWeb web) 35e65a3c-6d20-4bf2-8cf5-398847c2fc51
03/07/2013 15:09:33.73 w3wp.exe (0x0B20) 0x0F58 SharePoint 2010 FBA Pack General 0000 High System.Exception: Thread was being aborted. at Visigo.Sharepoint.FormsBasedAuthentication.MembershipRequest.ApproveMembership(MembershipRequest request, SPWeb web) at Visigo.Sharepoint.FormsBasedAuthentication.MembershipRequestControl.b__0() 35e65a3c-6d20-4bf2-8cf5-398847c2fc51
03/07/2013 15:09:33.74 w3wp.exe (0x0B20) 0x0F58 Web Content Management Publishing 7fov Medium Caught a thread abort exception in TemplateRedirectionPage.ProcessRequest, the exception may be expected. stack trace= at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.LOGINPAGELAYOUT_ASPX_190343958.ProcessRequest(HttpContext context) at Microsoft.SharePoint.Publishing.TemplateRedirectionPage.ProcessRequest(HttpContext context) 35e65a3c-6d20-4bf2-8cf5-398847c2fc51
I've checked the aspnet_Users and aspnet_Membership tables and the user is not inserted in either. Any help would be appreciated. Thanks.
Update
When I am logged in and try to register using the same existing page or a new page that just has the MembershipRequestWebPart on it, after submitting I am taken to the /_layouts/AccessDenied.aspx page, but this time it actually displays that page. What I'm confused about it what it is trying to access on the post back that it isn't during the initial display of the page? I'm still seeing the same errors in the logs with thread being abort at the ApproveMembership call.
Also, I have done a database backup from the live site to create my local site, so any configuration of SharePoint that is in the SQL database will have been moved over to my local dev environment. I did redeploy all of the wsp files locally and had to recreate the public site on port 80 to use Claims Authentication since when I first installed SP locally I didn't select that.