Sharepoint 2019 Server

Copper Contributor

Hi Guys,

 

First time with Sharepoint 2019 (on-prem) and VS2019. I thought I'd try my hand at writing my first App (straight off the MS Training site actually).

 

After much configuring and reconfiguring of the Sharepoint server I've managed to get my App deployed. It's a very simple app which really just creates a list.

 

The issue I'm having is when I try to launch the App I'm presented with a Blank Screen and no error codes. When checking the Sharepoint Server I get the below error in the Event Log which coincides with the launching of my App. To me it looks like some kind of an IIS error and I think it's related but I'm not sure what it's trying to tell me.

 

Anyone have any clue or have seen this before?

 

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 3/12/2019 9:41:53 PM
Event time (UTC): 3/12/2019 10:41:53 AM
Event ID: 10b191d00b01475198f9f8e7e198867f
Event sequence: 32
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/15818189/ROOT-1-132198420014582701
Trust level: Full
Application Virtual Path: /
Application Path: C:\inetpub\wwwroot\wss\VirtualDirectories\80\
Machine name: W2019

Process information:
Process ID: 1524
Process name: w3wp.exe
Account name: <DOMAIN ACCOUNT>

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.GetHostHeaderUrlFromLookupKey(String scheme, String hostHeaderLookupKey)
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, String& siteRedirectUrl, Boolean& hostHeaderIsSiteName, Boolean& appWebRequest, String& appHostHeaderRedirectDomain, String& appSiteDomainPrefix, String& subscriptionName, String& appSiteDomainId, Uri& primaryUri)
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.LookupSiteInfo(SPFarm farm, Boolean contextSite, Boolean swapSchemeForPathBasedSites, Uri& requestUri, Boolean& lookupRequiredContext, Guid& applicationId, Guid& contentDatabaseId, Guid& siteId, Guid& siteSubscriptionId, SPUrlZone& zone, SPResourcePath& 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, Boolean readOnlyIntent)
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.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

0 Replies