INTRODUCTION
I have just installed SharePoint 2013 and I’m now in the process of migrating sites.
One of the sites has FBA Authentication setup with custom login page. In the custom login page I use SPClaimsUtility.AuthenticateFormsUser to authenticate the user.
The site was restored OK in SP 2013 except when I tried to login using the custom login page I get the following error:
==
Exception information:
Exception type: FileNotFoundException
Exception message: Could not load file or assembly ‘Microsoft.SharePoint.IdentityModel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ or one of its dependencies. The system cannot find the file specified.
at RDC.Branding.Layouts.RDC.Branding.LoginPage.Login_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
==
RESOLUTION
The resolution to this issue was missing a dependent assembly. So open your SP site’s web.config and add the following lines within <assemblyBinding> tag:
<dependentAssembly>
<assemblyIdentity name=”Microsoft.SharePoint.IdentityModel” publicKeyToken=”71e9bce111e9429c” culture=”neutral” />
<bindingRedirect oldVersion=”14.0.0.0″ newVersion=”15.0.0.0″ />
</dependentAssembly>
Hope this helps,
Tommy