I am having difficulty setting up Sharepoint Foundation 2013 to use forms-based authentication with an external LDAP provider.
I have followed the instructions here: http://technet.microsoft.com/en-us/library/ee806890.aspx
After editing the central admin and SecurityToken web.config files, everything is still working fine and I can access both CA and the webapp's sign-in. As soon as I edit my webapp's web.config, the webapp site stops loading. I've made several tweaks to the web.config to try and troubleshoot, all to no avail - I either get a "Sorry..." message with no details, or:
Server Error in '/' Application.
Common Language Runtime detected an invalid program. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidProgramException: Common Language Runtime detected an invalid program.
Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace: [InvalidProgramException: Common Language Runtime detected an invalid program.] System.Web.Security.Roles.Initialize() +1093 System.Web.Security.RoleManagerModule.OnLeave(Object source, EventArgs eventArgs) +73 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +182 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +183
Any ideas?