Thursday, December 26, 2013

Error Type: Custom FBA Login Page Error - Could not load file or assembly Microsoft.SharePoint.IdentityModel


In my previous post creating custom login page, i have faced that following error.

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.

Here is the solution.

The resolution to this issue was missing a dependent assembly. So open your SharePoint 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>


No comments:

Post a Comment