Solved

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.

Posted on 2016-08-18
9
33 Views
Last Modified: 2016-10-13
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
0
Comment
Question by:Mohlalefi
  • 4
  • 2
9 Comments
 
LVL 15

Accepted Solution

by:
Walter Curtis earned 500 total points (awarded by participants)
ID: 41761653
Here are a few questions that might help troubleshoot the problem:

What has changed?

Where is the message coming from?
Maybe be load balancer? FireWall? Other server or applicance? (Although the stack trace looks to be SharePoint.)

Did you have the web app extended so that you could provide a public facing url? If so, make sure that web extension has not been deleted. Check in IIS to make sure that the extension is not stopped.

If you do have a web extension, are the settings correct? You mention that using the public url internally you get a login prompt. Has the start or landing page that should be anonymous been changed to not allow anonymous access? Has the page been modified and not published? Is there a link to something that requires authentication? Has a developer touched the system in any way?

A few other things to check;
Have AAM's been changed?
Are service accounts that are needed enabled and working correctly?
Can you hit the public site using an IP address? (Just a standard troubleshooting step.)

Good luck...
0
 

Author Comment

by:Mohlalefi
ID: 41762081
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?
0
 
LVL 15

Expert Comment

by:Walter Curtis
ID: 41762346
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...
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

Author Comment

by:Mohlalefi
ID: 41762408
We were just on deployment stage, I will implement the AAM's.

Thank you very much
0
 
LVL 15

Expert Comment

by:Walter Curtis
ID: 41835127
The provided answers had information that was accurate, correct and provided a way to solve the problem.
0
 
LVL 15

Expert Comment

by:Walter Curtis
ID: 41841532
The answer provides is accurate and offers solutions for the reported issue.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to dynamically set the form action using jQuery.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now