Link to home
Start Free TrialLog in
Avatar of Mohlalefi
MohlalefiFlag for Lesotho

asked on

Server Error in '/' Application. The Web application at [Domain name] could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content.

We are using SharePoint server 2013 Enterprise installed on windows server 2012 R2 Standard

This is the internet facing website with the following settings
-      Anonymous access enabled
-      Integrated Windows Authentication : NTLM
-      Authentication provider : Claim Based Authentication


When browsing the website publicly using the domain name I get the above mentioned Error, But if I login locally on the server [http://serverName/] then browse the website again using domain name the error disappears.



When browsing the website locally using the server name [http://serverName/]
1. I can access the website with no problems
2. And I am able to login into to SharePoint
3. When I browse a website locally on the server but using the domain name not the server name I cannot login into SharePoint it keeps displaying the authentication box as if I am entering the wrong credentials.


Below is the full error

Server Error in '/' Application.
The Web application at http: [public url] 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.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: The Web application at [public url] 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.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[FileNotFoundException: The Web application at [public url] 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.]
   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) +3369
   Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSites, SPUserToken userToken) +569
   Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken) +32
   Microsoft.SharePoint.SPSite..ctor(String requestUrl, SPUserToken userToken) +105
   Microsoft.SharePoint.Publishing.CachedObjectFactory.get_SuperReaderSite() +441
   Microsoft.SharePoint.Publishing.AclCache.GetAclForScope(Guid scopeId, Boolean disposeOfSite) +96
   Microsoft.SharePoint.Publishing.AclCache.GetEffectivePermissions(Guid scopeId, SPWeb contextWeb) +117
   Microsoft.SharePoint.Publishing.CachedObject.GetEffectivePermissions(SPWeb contextWeb) +63
   Microsoft.SharePoint.Publishing.WebControls.CombinedBasePermissions..ctor() +457
   Microsoft.SharePoint.Publishing.WebControls.ConsoleVisibleUtilities.get_CanShowSiteActionsMenuItems() +31
   Microsoft.SharePoint.Publishing.Internal.WebControls.PublishingRibbon.OnLoad(EventArgs e) +510
   System.Web.UI.Control.LoadRecursive() +129
   System.Web.UI.Control.LoadRecursive() +226
   System.Web.UI.Control.LoadRecursive() +226
   System.Web.UI.Control.LoadRecursive() +226
   System.Web.UI.Control.LoadRecursive() +226
   System.Web.UI.Control.LoadRecursive() +226
   System.Web.UI.Control.LoadRecursive() +226
   System.Web.UI.Control.LoadRecursive() +226
   System.Web.UI.Control.LoadRecursive() +226
   System.Web.UI.Control.LoadRecursive() +226
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3997


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1069.1
ASKER CERTIFIED SOLUTION
Avatar of Walter Curtis
Walter Curtis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mohlalefi

ASKER

Thank you for our informative reply

Yes we can hit the website using the public IP address. We did not configure alternative access mapping could that be our problem?
Yes, that's the problem. I should have asked, has this every worked and it now broken, or has it never worked. If it never worked, check the alternative access mappings.

Good luck...
We were just on deployment stage, I will implement the AAM's.

Thank you very much
The provided answers had information that was accurate, correct and provided a way to solve the problem.
The answer provides is accurate and offers solutions for the reported issue.