I've migrated a web application's content database from SP2010 to SP2013. After the migration was complete, I am completely locked out of the web application. Navigating to the root site collection prompts me for credentials which are refused every time. The user I'm trying to log in as is a farm administrator as well as site collection administrator.
I've tried using PowerShell to get myself access (this is also part of the migration procedure):
$account = "yourDomain\yourUser"
$account = (New-SPClaimsPrincipal -identity $account -identitytype 1).ToEncodedString()
$wa = get-SPWebApplication $WebAppName
$zp = $wa.ZonePolicies("Default")
$p = $zp.Add($account,"PSPolicy")
$fc=$wa.PolicyRoles.GetSpecialRole("FullControl")
$p.PolicyRoleBindings.Add($fc)
$wa.Update()
$wa.MigrateUsers($true)
$wa.ProvisionGlobally()
This hasn't worked. I've also checked the site collection admin in Application Mangement -> Site Collections -> Change site collection administrators
That needed to be changed when it was first switched over as the previous environment was on a different domain, but the user now listed as a site collection admin cannot get to the root site collection.
I've also tried enabling anonymous access in the process outlined here and still can't get in.
This is just a personal testing environment so no worries about trying anything that breaks, I can always revert the VM.
How can I regain access to this web application?