Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

Apps Error in SharePoint 2013 Exception Details: System.UriFormatException: Invalid URI: The hostname could not be parsed.

$
0
0

Hello, I'm in a specific problem with Apps for SharePoint 2013.
I have a farm Sharepoint Server 2013 consists of a Front End and Application, The services of the apps working properly but with some errors:
I have several web application all of which have different host header and are in the same port, for example:

Web app1 (web1.contoso.net) puerto 80

Web app2 (web2.contoso.net) puerto 80

Web app3 (web3.contoso.net) puerto 80

Web app4 (web4.contoso.net) puerto 80

All web application have to run the Apps but as all have host header set returns me a 404, the proposed solution to this issue so that the dns of the apps can properly address is published in the following links:

http://absolute-sharepoint.com/2013/02/troubleshooting-setting-up-an-environment-for-apps-for-sharepoint-2013.html (error 2) https://www.nothingbutsharepoint.com/sites/devwiki/articles/pages/configure-an-environment-for-apps-for-sharepoint-2013.aspx

The web applications are as follows:

Web app1 (web1.contoso.net) puerto 80

Web app2 (web2.contoso.net) puerto 80

Web app3 (web3.contoso.net) puerto 80

Web app4 (web4.contoso.net) puerto 80

Web App5 (sin host header) puerto 80

Now I encounter another error, where the DNS resolves correctly but the page does not load completely, press F12, and return me a 500 error.

I modify the web.config file to display the error in more detail and I returned the following:

Server Error in '/' Application.

--------------------------------------------------------------------------------

Invalid URI: The hostname could not be parsed.

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.UriFormatException: Invalid URI: The hostname could not be parsed.

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:

[UriFormatException: Invalid URI: The hostname could not be parsed.]

   System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) +8890818

   Microsoft.SharePoint.SPSite.GetHostHeaderRelativeUrlFromLookupKey(String hostHeaderLookupKey) +69

   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) +1667

  Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSites, SPUserToken userToken) +825

   Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSites) +210

   Microsoft.SharePoint.Administration.SPAlternateUrl.GetContextUri(HttpContext ctx) +1020

   Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.BeginRequestHandler(Object oSender, EventArgs ea) +1472

   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +182

   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165

--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929

Searching the web I found someone with a similar problem (http://social.msdn.microsoft.com/Forums/vstudio/en-US/15386b05-6498-4c56-a3e5-916face21f07/appfabric-caching-service-crashed-with-exception-systemuriformatexception-invalid-uri-the)

None of this solved this problem.

If anyone has any ideas to contribute, I'd appreciate it.

thank you very much

sorry for my bad English


Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>