Here's the deal...I have fully configured apps in 3 2013 environments up to this point and this time around I cannot get apps to load properly. I get the error below in the server application log. In short it is an Internal Server 500 error and
these are the relevant lines (I think):
Exception type: UriFormatException
Exception message: Invalid URI: The hostname could not be parsed.
My setup is as follows (as it has been in the last 3 environments I have built where apps is working):
1 x SharePoint 2013 Web server
1 x SharePoint 2013 App Server
1 x SharePoint DB Server (SQL 2012 R2)
I have configured Apps by creating the App Management and Subscription service, and creating a new web application with no host header that is listening on 443. I have a load balancer that is also listening on 443, which has the web server on port
443 as its only load balanced node. DNS points all request to *.appdomain.com to the load balancer on 443 then to the back end web server on 443. I have the app domain and app domain prefix set in SharePoint CA. I can to a site collection
and browse the SharePoint App Store, install it, but when I launch it it shows me the app, but only the text. There are no images. And each time I try to launch the app there is a corresponding event log ASP.NET 4.0.30319.0 error 1309 which indicates
the following:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 7/3/2014 3:52:29 PM
Event time (UTC): 7/3/2014 7:52:29 PM
Event ID: b2508f42438c49028d246d472a63096d
Event sequence: 32
Event occurrence: 22
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1624334000/ROOT-1-130488879715269082
Trust level: Full
Application Virtual Path: /
Application Path: C:\inetpub\wwwroot\wss\VirtualDirectories\appdomain.com443\
Machine name: SP-DR-WEB01
Process information:
Process ID: 5408
Process name: w3wp.exe
Account name: domain\sp_dr_app_pool
Exception information:
Exception type: UriFormatException
Exception message: Invalid URI: The hostname could not be parsed.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at Microsoft.SharePoint.SPSite.GetHostHeaderRelativeUrlFromLookupKey(String hostHeaderLookupKey)
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, Boolean swapSchemeForPathBasedSites)
at Microsoft.SharePoint.Administration.SPAlternateUrl.GetContextUri(HttpContext ctx)
at Microsoft.SharePoint.Publishing.CatalogUrlCache.GetFriendlyUrlCacheKeyFromContext()
at Microsoft.SharePoint.Publishing.PublishingHttpModule.OverrideUsageAnalyticsData()
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Request information:
Request URL: https://apps-a7a948ec2f773b.dr.appdomain.com:443/_layouts/15/init.js?rev=/WTxr8UesytJ8GB/5hOwZA==
Request path: /_layouts/15/init.js
User host address: 10.210.1.135
User:
Is authenticated: False
Authentication Type:
Thread account name: domain\sp_dr_app_pool
Thread information:
Thread ID: 41
Thread account name: domain\sp_dr_app_pool
Is impersonating: False
Stack trace: at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at Microsoft.SharePoint.SPSite.GetHostHeaderRelativeUrlFromLookupKey(String hostHeaderLookupKey)
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, Boolean swapSchemeForPathBasedSites)
at Microsoft.SharePoint.Administration.SPAlternateUrl.GetContextUri(HttpContext ctx)
at Microsoft.SharePoint.Publishing.CatalogUrlCache.GetFriendlyUrlCacheKeyFromContext()
at Microsoft.SharePoint.Publishing.PublishingHttpModule.OverrideUsageAnalyticsData()
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Custom event details:
Any help would be GREATLY appreciated.
Thanks.