The Web application at http://localhost could not be found RRS feed

  • Question

  • Dear fellow FIM Junkies.

    I'm currently trying to setup a test case with FIM. 

    Got FIM Sync service installed (all in one machine). But got problem when trying to install the FIM Service and Portal.

    MS Server 2012.
    SharePoint Foundation 2013.
    FIM Sync Service (R2 SP1).
    SQL Server 2008 R2 SP2 (on another machine).

    Followed this guide: FIM Specialist Guide (can't post links until account has been verified). 

    The web application/site collection has all been configured and double checked (CompatibilityLevel 14, ViewStateOnServer is False, AllowSelfServiceUpgrade is false, UseClaimsAuthentication is false).

    SPN's have been set as per guide instructions. Delegations have not been set up.

    Yet, when I run the install using logging, it fails to find the SP Site:

    Also, http://localhost is accessible and shows the SharePoint blank template.

    Log exception:

    Calling custom action Microsoft.IdentityManagement.SharePointCustomActions!Microsoft.IdentityManagement.ManagedCustomActions.SharepointCustomActions.VerifyClaimsAuthenticationOff
    Property name = 'SHAREPOINT_URL', value = 'http://localhost'.
    Exception thrown by custom action:
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: The Web application at http://localhost could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.
       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.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSites, SPUserToken userToken)
       at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken)
       at Microsoft.SharePoint.SPSite..ctor(String requestUrl)
       at Microsoft.IdentityManagement.ManagedCustomActions.SharepointCustomActions.VerifyClaimsAuthenticationOff(Session session)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object parameters, Object arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
       at Microsoft.Deployment.WindowsInstaller.CustomActionProxy.InvokeCustomAction(Int32 sessionHandle, String entryPoint, IntPtr remotingDelegatePtr)
    CustomAction VerifySharePoint2013ClaimsAuthenticationOff returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
    Action ended 10:10:25: VerifySharePoint2013ClaimsAuthenticationOff. Return value 3.
    Action ended 10:10:25: INSTALL. Return value 3.

    Anyone got any clues to what might be wrong?
    PS: Have done this more than once now (deleted FIM Portal Site collection and recreated it), still fail with the same exception.

    Tuesday, October 15, 2013 8:31 AM


  • Fixed. The alternate mappings where set wrong. 

    The alternate mapping was set to: http://fim-portal.com
    But if I set it to http://dev-fimaio (the machine it's running on), it worked.

    • Marked as answer by WickedSoft Wednesday, October 16, 2013 7:12 AM
    Wednesday, October 16, 2013 7:11 AM

All replies