Skip to main content
Dynamics 365

Forms authentication provider stops working after applying May CU for SharePoint 2013

After we installed May CU for SharePoint 2013 (15.0.4823.1003) we were not able to log with Forms authentication users and the error (404)

In SharePoint log we could see the error:

Exception trying get context compatibility level: System.IO.FileNotFoundException: The site could not be found in the Web application SPWebApplication Name=DynamicsFormsSTS – at Microsoft.SharePoint.SPSite.LookupSiteInfo(SPFarm farm, Boolean contextSite, Boolean swapSchemeForPathBasedSites, Uri& requestUri, Boolean& lookupRequiredContext, Guid& applicationId, Guid& contentDatabaseId, Guid& siteId, Guid& siteSubscriptionId, SPUrlZone& zone, String& serverRelativeUrl, Boolean& hostHeaderIsSiteName, Boolean& appWebRequest, String& appHostHeaderRedirectDomain, String& appSiteDomainPrefix, String& subscriptionName, String& appSiteDomainId, Uri& primaryUri) at Microsoft.SharePoint.ApplicationRunt… …ime.SPRequestModule.GetContextCompatibilityLevel(Uri requestUri)

I have analyzed the issue and it looks like the issue was connected to the fact that when we create provider using the command:


We do not create a site collection at the root and that causes the issue. Once I have created a site collection at the root where we have provider the issue got resolved.

It seems we are running into the issue described here:

To solve the issue, you need to:

  1. Go to the SharePoint 2013 Central Administration
  2. Click on Create site collection:
  3. Select the Web application which hosts you authentication provider.
  4. Create a team site collection at root location

There is also possibility to create a blank page. To create a blank page, you need to run following command in SharePoint 2013 Management Shell

$template = Get-SPWebTemplate “STS#1”

New-SPSite -Url “” -OwnerAlias “contoso\administrator” -Template $template