Mohlalefi
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.FileNotFoundExce ption: 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.SPSit e.LookupSi teInfo(SPF arm farm, Boolean contextSite, Boolean swapSchemeForPathBasedSite s, Uri& requestUri, Boolean& lookupRequiredContext, Guid& applicationId, Guid& contentDatabaseId, Guid& siteId, Guid& siteSubscriptionId, SPUrlZone& zone, String& serverRelativeUrl, Boolean& hostHeaderIsSiteName, Boolean& appWebRequest, String& appHostHeaderRedirectDomai n, String& appSiteDomainPrefix, String& subscriptionName, String& appSiteDomainId, Uri& primaryUri) +3369
Microsoft.SharePoint.SPSit e..ctor(SP Farm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSite s, SPUserToken userToken) +569
Microsoft.SharePoint.SPSit e..ctor(SP Farm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken) +32
Microsoft.SharePoint.SPSit e..ctor(St ring requestUrl, SPUserToken userToken) +105
Microsoft.SharePoint.Publi shing.Cach edObjectFa ctory.get_ SuperReade rSite() +441
Microsoft.SharePoint.Publi shing.AclC ache.GetAc lForScope( Guid scopeId, Boolean disposeOfSite) +96
Microsoft.SharePoint.Publi shing.AclC ache.GetEf fectivePer missions(G uid scopeId, SPWeb contextWeb) +117
Microsoft.SharePoint.Publi shing.Cach edObject.G etEffectiv ePermissio ns(SPWeb contextWeb) +63
Microsoft.SharePoint.Publi shing.WebC ontrols.Co mbinedBase Permission s..ctor() +457
Microsoft.SharePoint.Publi shing.WebC ontrols.Co nsoleVisib leUtilitie s.get_CanS howSiteAct ionsMenuIt ems() +31
Microsoft.SharePoint.Publi shing.Inte rnal.WebCo ntrols.Pub lishingRib bon.OnLoad (EventArgs e) +510
System.Web.UI.Control.Load Recursive( ) +129
System.Web.UI.Control.Load Recursive( ) +226
System.Web.UI.Control.Load Recursive( ) +226
System.Web.UI.Control.Load Recursive( ) +226
System.Web.UI.Control.Load Recursive( ) +226
System.Web.UI.Control.Load Recursive( ) +226
System.Web.UI.Control.Load Recursive( ) +226
System.Web.UI.Control.Load Recursive( ) +226
System.Web.UI.Control.Load Recursive( ) +226
System.Web.UI.Control.Load Recursive( ) +226
System.Web.UI.Page.Process RequestMai n(Boolean includeStagesBeforeAsyncPo int, Boolean includeStagesAfterAsyncPoi nt) +3997
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1069.1
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.FileNotFoundExce
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.SPSit
Microsoft.SharePoint.SPSit
Microsoft.SharePoint.SPSit
Microsoft.SharePoint.SPSit
Microsoft.SharePoint.Publi
Microsoft.SharePoint.Publi
Microsoft.SharePoint.Publi
Microsoft.SharePoint.Publi
Microsoft.SharePoint.Publi
Microsoft.SharePoint.Publi
Microsoft.SharePoint.Publi
System.Web.UI.Control.Load
System.Web.UI.Control.Load
System.Web.UI.Control.Load
System.Web.UI.Control.Load
System.Web.UI.Control.Load
System.Web.UI.Control.Load
System.Web.UI.Control.Load
System.Web.UI.Control.Load
System.Web.UI.Control.Load
System.Web.UI.Control.Load
System.Web.UI.Page.Process
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1069.1
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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...
Good luck...
ASKER
We were just on deployment stage, I will implement the AAM's.
Thank you very much
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.
ASKER
Yes we can hit the website using the public IP address. We did not configure alternative access mapping could that be our problem?