Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rasmus Eeg 91 posts 457 karma points c-trib
    Jun 29, 2015 @ 09:33
    Rasmus Eeg
    0

    Error in HttpModule for url rewriting

    Hi Soeteman

    We are receiving this error:

    2015-06-29 11:11:08,122 [40] ERROR SEOChecker.HttpModules.UrlModule - [T24/D17] SEOChecker: Error in HttpModule for url rewriting
    System.UriFormatException: Invalid URI: The hostname could not be parsed.
       at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
       at System.Uri..ctor(String uriString)
       at System.UriBuilder.get_Uri()
       at SEOChecker.Core.Extensions.UrlBuilderExtensions.ToUri(UrlBuilder builder)
       at SEOChecker.Core.Extensions.HttpContextExtensions.RawUri(HttpContext context)
       at SEOChecker.Core.Extensions.HttpContextExtensions.RawUrl(HttpContext context)
       at SEOChecker.HttpModules.UrlModule._(Object _, EventArgs _)
    

    Our domain table:

    3   5   1174    *1174
    4   4   1214    *1214
    5   3   1254    *1254
    6   2   1294    *1294
    10  5   1174    company.de
    11  4   1214    company.com.tr
    12  3   1254    company.es
    13  2   1294    company.it
    14  1   1054    *1054
    22  1   1054    company.com
    23  1   1054    localhost:54673
    24  1   1054    dev.ourdomain.dk
    

    Sites has umbracoInternalRedirectId set to child page. But umbracoInternalRedirectId never trickers.

    It tries to render site without a template. This did not take place before, when we only had one site root.

    SEO Checker have been installed from the beginning of the development.

    We are currently running the site on:

    dev.ourdomain.com
    localhost:54673
    

    We can access the homepage from:

    dev.ourdomain.com/home
    localhost:54673/home
    

    Only config change that we have done in SEO Checker, is setting the not found page for each domain.

    Best regards Rasmus Møller

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Jun 29, 2015 @ 09:51
    Richard Soeteman
    0

    Hi Rasmus,

    What version of SEOChecker are you using?

    Best,

    Richard

  • Rasmus Eeg 91 posts 457 karma points c-trib
    Jun 29, 2015 @ 09:54
    Rasmus Eeg
    0

    Hi Richard,

    We are using version: SEO Checker V1.9, i installed using nuget

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Jun 29, 2015 @ 09:58
    Richard Soeteman
    0

    And when you don't use the umbracoInternalRedirectId property? Does it gives errors then?

  • Rasmus Eeg 91 posts 457 karma points c-trib
    Jun 29, 2015 @ 10:08
    Rasmus Eeg
    0

    On save, default stuff.

    015-06-29 12:04:26,584 [40] INFO  Umbraco.Core.Publishing.PublishingStrategy - [T49/D17] Content 'Website' with Id '1054' has been published.
    2015-06-29 12:04:30,717 [40] INFO  umbraco.content - [T34/D17] Save Xml to file...
    2015-06-29 12:04:30,787 [40] INFO  umbraco.content - [T32/D17] Saved Xml to file.
    

    Yes it gives the following on request of domain:

    2015-06-29 12:04:38,095 [40] ERROR SEOChecker.HttpModules.UrlModule - [T49/D17] SEOChecker: Error in HttpModule for url rewriting
    System.UriFormatException: Invalid URI: The hostname could not be parsed.
       at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
       at System.Uri..ctor(String uriString)
       at System.UriBuilder.get_Uri()
       at SEOChecker.Core.Extensions.UrlBuilderExtensions.ToUri(UrlBuilder builder)
       at SEOChecker.Core.Extensions.HttpContextExtensions.RawUri(HttpContext context)
       at SEOChecker.Core.Extensions.HttpContextExtensions.RawUrl(HttpContext context)
       at SEOChecker.HttpModules.UrlModule.(Object , EventArgs )
    2015-06-29 12:04:38,752 [40] ERROR SEOChecker.HttpModules.UrlModule - [T41/D17] SEOChecker: Error in HttpModule for url rewriting
    System.UriFormatException: Invalid URI: The hostname could not be parsed.
       at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
       at System.Uri..ctor(String uriString)
       at System.UriBuilder.get_Uri()
       at SEOChecker.Core.Extensions.UrlBuilderExtensions.ToUri(UrlBuilder builder)
       at SEOChecker.Core.Extensions.HttpContextExtensions.RawUri(HttpContext context)
       at SEOChecker.Core.Extensions.HttpContextExtensions.RawUrl(HttpContext context)
       at SEOChecker.HttpModules.UrlModule.(Object , EventArgs )
    
  • Rasmus Eeg 91 posts 457 karma points c-trib
    Jun 29, 2015 @ 11:06
    Rasmus Eeg
    0

    If it is any help, i can share a private link to our development?

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Jun 29, 2015 @ 11:08
    Richard Soeteman
    0

    I can reproduce now when running from VS I normally use iis local host names. working on it.

  • Rasmus Eeg 91 posts 457 karma points c-trib
    Jun 29, 2015 @ 11:30
    Rasmus Eeg
    0

    Sounds good!

    Hope that thats it.

    Just tried removing localhost from hostnames. But our dev.domain.com still doesn't work with and without umbracoInternalRedirectId

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Jun 29, 2015 @ 11:51
    Richard Soeteman
    0

    Hi Rasmus,

    below the version with the fix for the uri. Tested with umbracoInternalRedirectId property and that redirects also.

    https://www.dropbox.com/s/kwcu22c0ubtzswg/seochecker-1.9.2.zip?dl=0

    Hope this helps

  • Rasmus Eeg 91 posts 457 karma points c-trib
    Jun 29, 2015 @ 11:54
    Rasmus Eeg
    0

    Sound great!

    So i just override using install from zip, or should i uninstall first?

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Jun 29, 2015 @ 11:55
    Richard Soeteman
    100

    Just install using the zip

  • Rasmus Eeg 91 posts 457 karma points c-trib
    Jun 29, 2015 @ 12:35
    Rasmus Eeg
    0

    Thanks, that indeed did solve the localhost not working.

    sadly it didn't solve my umbracoInternalRedirectId.

    umbracoInternalRedirectId doesn't look like it's related to SEO Checker anymore. Very weird...

    I found another error:

    2015-06-29 14:32:45,891 [16] ERROR SEOChecker.DataTypes.Events.SetSEOValuesFromMappedProperties - [T42/D27] Error saving mapped meta data
    System.ArgumentNullException: Value cannot be null.
    Parameter name: key
       at System.Collections.ObjectModel.KeyedCollection`2.Contains(TKey key)
       at Umbraco.Core.Models.ContentBase.HasProperty(String propertyTypeAlias)
       at SEOChecker.DataTypes.Events.SetSEOValuesFromMappedProperties.(IContentService , SaveEventArgs`1 )
    2015-06-29 14:32:45,900 [16] INFO  Umbraco.Core.Publishing.PublishingStrategy - [T42/D27] Content 'Danske Commodities' with Id '1054' has been published.
    

    This happens on a page without SEO hecker PropertyEditor's Only sometimes, have a hard time finding out when it happens, and why.

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Jun 29, 2015 @ 12:38
    Richard Soeteman
    0

    Really weird, since it fixed my issue locally, can you share the environment perhaps? maybe better to mail [email protected]

    Out of the office within a few minutes and onsite tomorrow and day after but will try to have a look.

  • Rasmus Eeg 91 posts 457 karma points c-trib
    Jun 29, 2015 @ 13:00
    Rasmus Eeg
    0

    Sure, i'll get one packaged and "shipped".

    You'll have it tomorrow morning.

    Though i don't think it's related to seochecker any more.

    I've uninstalled SEO Checker and the error is still there.

  • Rasmus Eeg 91 posts 457 karma points c-trib
    Jun 29, 2015 @ 14:06
    Rasmus Eeg
    0

    umbracoInternalRedirectId found that it doesn't work with "MTNP"

  • Arjan Woldring 124 posts 231 karma points
    Jun 29, 2015 @ 14:57
    Arjan Woldring
    0

    Hi Richard,

    1.9.2 Seems to fix the parsing issue of the hostname.

    But I do have the same issue as Rasmus has. I do start with an umbracoInternalRedirect too. And have this error:

    015-06-29 16:52:49,898 [63] ERROR SEOChecker.DataTypes.Events.SetSEOValuesFromMappedProperties - [T82/D10] Error saving mapped meta data
    System.ArgumentNullException: Waarde kan niet null zijn.
    Parameternaam: key
       bij System.Collections.ObjectModel.KeyedCollection`2.Contains(TKey key)
       bij Umbraco.Core.Models.ContentBase.HasProperty(String propertyTypeAlias)
       bij SEOChecker.DataTypes.Events.SetSEOValuesFromMappedProperties.(IContentService , SaveEventArgs`1 )
    
  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Jun 30, 2015 @ 04:16
    Richard Soeteman
    0

    The exception is fixed also in the release below. Bug occured when you don't use the SEOChecker property editor on a doctype.

    @Arjan see previous comment about the internalredirect property from Rasmus. Make sure you use the default node picker or a numeric field. It's Umbraco related but it requires just a number.

    https://www.dropbox.com/s/kwcu22c0ubtzswg/seochecker-1.9.2.zip?dl=0

    Best,

    Richard

  • Arjan Woldring 124 posts 231 karma points
    Jun 30, 2015 @ 10:14
    Arjan Woldring
    0

    All seems fine now. Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft