I have problem with alternate access mapping that make FBA threw exception

ahmed sharkaway 116 Reputation points
2020-12-28T00:02:46.037+00:00

I have extended web application to internet zone and configure SQL FBA and all works as it supposed to be, but
when mapped it to real Ip in AAm it works but gives me this exception in logging in

System.InvalidOperationException: Not in claims forms auth .
at Microsoft.SharePoint.IdentityModel.SPClaimsUtility.GetFormsAuthenticationProvider(Uri context)
at Microsoft.SharePoint.IdentityModel.SPClaimsUtility.AuthenticateFormsUser(Uri context, String userName, String password)
at CustommMembership.ValidateUser(String userName, String password, Boolean rememberPassword)

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,619 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 47,296 Reputation points Microsoft Vendor
    2020-12-28T09:02:16.993+00:00

    @ahmed sharkaway
    It may be caused by the zone configured under web application does not match the zone of alternate access mappings you have configured.

    For example, you may have added a new access mappings corresponding to custom zone. You need to change the zone to be custom under the web application.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.