Copied to clipboard

Flag this post as spam?

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


  • Bjarne Fyrstenborg 1182 posts 3441 karma points MVP 4x c-trib
    Jan 14, 2014 @ 13:34
    Bjarne Fyrstenborg
    0

    Invalid URI: The hostname could not be parsed

    Hi..

    after upgrading from v. 2.2.6 to v. 2.4.5 and migration of the data I get the following error in the dashboard:

    Invalid URI: The hostname could not be parsed.

    Stack Trace: 

    [UriFormatException: Invalid URI: The hostname could not be parsed.]
       System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) +6244872
       System.Uri..ctor(String uriString) +20
       InfoCaster.Umbraco.UrlTracker.Models.UrlTrackerModel.get_CalculatedOldUrlWithDomain() in c:\Users\kipusoep\Documents\GitHub\UrlTracker\Models\UrlTrackerModel.cs:72
       InfoCaster.Umbraco.UrlTracker.Models.UrlTrackerModel.get_CalculatedOldUrl() in c:\Users\kipusoep\Documents\GitHub\UrlTracker\Models\UrlTrackerModel.cs:52
    
    [TargetInvocationException: Property accessor 'CalculatedOldUrl' on object 'InfoCaster.Umbraco.UrlTracker.Models.UrlTrackerModel' threw the following exception:'Invalid URI: The hostname could not be parsed.']
       System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) +400
       System.Web.UI.WebControls.BoundField.GetValue(Control controlContainer) +219
       System.Web.UI.WebControls.BoundField.OnDataBindField(Object sender, EventArgs e) +67
       System.Web.UI.Control.OnDataBinding(EventArgs e) +91
       System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92
       System.Web.UI.Control.DataBind() +15
       System.Web.UI.Control.DataBindChildren() +201
       System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
       System.Web.UI.Control.DataBind() +15
       System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) +166
       System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +3896
       System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +66
       System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) +14
       System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +128
       System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33
       System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
       System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
       System.Web.UI.WebControls.GridView.DataBind() +4
       System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
       System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +75
       System.Web.UI.Control.EnsureChildControls() +102
       System.Web.UI.WebControls.GridView.get_Rows() +34
       InfoCaster.Umbraco.UrlTracker.UI.UrlTrackerManager.OnPreRender(EventArgs e) in c:\Users\kipusoep\Documents\GitHub\UrlTracker\UI\UrlTrackerManager.aspx.cs:148
       System.Web.UI.Control.PreRenderRecursiveInternal() +103
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496

     

    I can send the data from the database table, it might be some of the values in the OldUrl column that fails?

    I am using Umbraco v. 6.1.6

    /Bjarne


  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jan 14, 2014 @ 13:47
    Stefan Kip
    0

    Please let me know the contents of your umbracoDomains table :-) Sounds like an invalid hostname.

  • Bjarne Fyrstenborg 1182 posts 3441 karma points MVP 4x c-trib
    Jan 14, 2014 @ 13:54
    Bjarne Fyrstenborg
    0

    The umbracoDomains table contains the following:

    iddomainDefaultLanguagedomainRootStructureIDdomainName
    11 3 1054 *1054
    12 3 1059 http://d25283583.u359.surftown.dk
    15 3 1059 http://www.lightair.dk
  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jan 14, 2014 @ 13:56
    Stefan Kip
    0

    Then the asterisk (*) domain is the problem because it's not a valid hostname, is that supported by umbraco anyway??

  • Bjarne Fyrstenborg 1182 posts 3441 karma points MVP 4x c-trib
    Jan 14, 2014 @ 14:08
    Bjarne Fyrstenborg
    0

    Previously the asterisk (*) domain was an option and a part of the description on "manage hostnames". It could be assigned and the use the dictionary items.. mostly when working locally.. perhaps it was from an earlier version before I upgraded Umbraco.. but I actually haven't any domains assigned to node with ID 1054, in my case it is the root node.. only the two domains on the child node (da-node) with ID 1059.

    But I think I had assigned the asterisk (*) domain in early state when working locally.. perhaps Umbraco doesn't delete the row after removing the hostname?

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jan 14, 2014 @ 14:09
    Stefan Kip
    0

    Could be, have you tried to remove the entry with the asterisk? Please let me know if that helps.

  • Bjarne Fyrstenborg 1182 posts 3441 karma points MVP 4x c-trib
    Jan 14, 2014 @ 14:19
    Bjarne Fyrstenborg
    0

    It didn't solve the issue.. the stack trace from above throws an error at CalculatedOldUrl, so I think it might be something about the old url's?

    In the OldUrl column I think it has catch some odd url's like scripts/).html(n.highlighter(r)),t[0]}),t.first().addClass( , scripts/)[this.options.html? and some other url's including scripts

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jan 14, 2014 @ 14:55
    Stefan Kip
    0

    No it's definitely a hostnames issue, because it fails inside the CalculatedOldUrlWithDomain property accessor.

    I think the issue is, that your hostnames are starting with 'http://', which is the scheme and not part of the hostname. Could you edit your hostnames to the format 'd25283583.u359.surftown.dk' and 'www.lightair.dk'?

  • Bjarne Fyrstenborg 1182 posts 3441 karma points MVP 4x c-trib
    Jan 14, 2014 @ 15:08
    Bjarne Fyrstenborg
    100

    Okay it solved the issue to remove http:// from the hostnames...

    but I think it conflicts Umbracos with the manage hostnames as you might want to specify http:// (default) or https://

    and that Umbraco specify valid domains as:

    Valid domain names are: "example.com", "www.example.com", "example.com:8080" or "https://www.example.com/".

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jan 14, 2014 @ 15:27
    Stefan Kip
    1

    True, I'll add support for the scheme too :-) Thanks for reporting.

  • Gerty Engrie 120 posts 470 karma points c-trib
    Jan 19, 2014 @ 20:05
    Gerty Engrie
    0

    Have the same issue, this is in my umbracoDomains table : 

    613307*3307

    721078*1078

    811077*1077

    Think it happens when just setting languages on nodes & no hostnames. (v6.1.6)

     

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jan 22, 2014 @ 17:53
    Stefan Kip
    0

    Well it should be fixed in v2.5.1 thanks to Gerty!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies