4

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?

1 Answer 1

1

To mirror the TechNet thread, see http://thesharepointfarm.com/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.

3
  • The link is out of date...
    – MBender
    Jul 27, 2015 at 8:20
  • 1
    Updated @Shaamaan
    – user6024
    Jul 27, 2015 at 13:45
  • Much obliged. :)
    – MBender
    Jul 27, 2015 at 14:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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