Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

To mirror the TechNet thread, see http://sharepoint.nauplius.net/2013/04/sharepoint-foundation-2013-the-ldapmembershipprovider-and-ldaproleprovider-class/. The LdapMembershipProvider and LdapRoleProvider classes exist in Foundation 2013, but their methods have no logic in them and you'll have to develop your own provider.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.