More in this section

Forums / Developing with Sitefinity / Unexpected end of file has occurred.

Unexpected end of file has occurred.

8 posts, 0 answered
  1. James@Nw
    James@Nw avatar
    265 posts
    Registered:
    05 May 2009
    07 Dec 2009
    Link to this post
    Hi Guys,

    I have done something wrong, working on my master pages this morning and now I cannot seem to get the pages working again. This is the error I get. It seems to have something to do with the News Archive control I am dropping onto the page.

    Appreciate it if someone knows an answer to this?

    Thanks,
    James


    1  Unexpected end of file has occurred. The following elements are not closed: SettingTypeName, BaseSettingValue, ArrayOfBaseSettingValue. Line 1, position 4001. 
    2 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. 
    3  
    4 Exception Details: System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: SettingTypeName, BaseSettingValue, ArrayOfBaseSettingValue. Line 1, position 4001. 
    5  
    6 Source Error: 
    7  
    8 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. 
    9  
    10 Stack Trace: 
    11  
    12 [XmlException: Unexpected end of file has occurred. The following elements are not closed: SettingTypeName, BaseSettingValue, ArrayOfBaseSettingValue. Line 1, position 4001.] 
    13    System.Xml.XmlTextReaderImpl.Throw(Exception e) +76 
    14    System.Xml.XmlTextReaderImpl.Throw(String res, String arg) +126 
    15    System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String arg) +18 
    16    System.Xml.XmlTextReaderImpl.ThrowUnclosedElements() +254 
    17    System.Xml.XmlTextReaderImpl.ParseElementContent() +3977055 
    18    System.Xml.XmlTextReaderImpl.Read() +45 
    19    System.Xml.XmlReader.InternalReadContentAsString() +181 
    20    System.Xml.XmlReader.ReadContentAsString() +37 
    21    System.Xml.XmlReader.ReadElementContentAsString() +35 
    22    Telerik.Cms.Engine.Design.SettingsListConverter.GetSettingTypes(String serializedSettings) +169 
    23    Telerik.Cms.Engine.Design.SettingsListConverter.DeserializeDesignerSettings(String settingsCollection) +105 
    24    Telerik.Cms.Engine.Design.SettingsListConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) +62 
    25    System.ComponentModel.TypeConverter.ConvertFromInvariantString(String text) +55 
    26    Telerik.Cms.Data.WebControlBase.LoadControl(Control control, PropertyDescriptorCollection properties) +165 
    27    Telerik.Cms.Data.CmsWebControl.LoadControl(Control control, PropertyDescriptorCollection properties) +9 
    28    Telerik.Cms.Data.WebControlBase.LoadControl(TemplateControl template, Control& control) +287 
    29    Telerik.Cms.Data.WebControlBase.LoadControl(TemplateControl template) +27 
    30    Telerik.Cms.Data.WebControlBase.LoadControl() +12 
    31    Telerik.Cms.Data.PageContentBase.GetRewriterServices() +319 
    32    Telerik.Cms.Data.PageBase.GetRewriterServices() +17 
    33    Telerik.Cms.Web.CmsSiteMapProvider.AddUrlServices(ICmsPage page, CmsSiteMapNode node, String key) +53 
    34    Telerik.Cms.Web.CmsSiteMapProvider.CacheNode(ICmsPage page, CmsSiteMapNode parentNode) +730 
    35    Telerik.Cms.Web.CmsSiteMapProvider.GetNode(Guid id, ICmsPage page) +389 
    36    Telerik.Cms.Web.CmsSiteMapProvider.BuildChildNodes(SiteMapNode parentNode) +586 
    37    Telerik.Cms.Web.CmsSiteMapProvider.GetChildNodes(SiteMapNode parentNode, SiteMapDisplayMode displayMode) +48 
    38    Telerik.Cms.Web.CmsSiteMapProvider.GetChildNodes(SiteMapNode parentNode) +17 
    39    System.Web.SiteMapNode.get_ChildNodes() +27 
    40    System.Web.SiteMapNode.get_HasChildNodes() +7 
    41    System.Web.SiteMapNode.System.Web.UI.IHierarchyData.get_HasChildren() +7 
    42    Telerik.Web.UI.ControlDataBinder.BindToHierarchicalEnumerable(ControlItemCollection items, IHierarchicalEnumerable enumerable, Int32 depth) +311 
    43    Telerik.Web.UI.ControlDataBinder.BindToHierarchicalEnumerable(ControlItemCollection items, IHierarchicalEnumerable enumerable, Int32 depth) +372 
    44    Telerik.Web.UI.ControlDataBinder.BindToHierarchicalData(IHierarchicalEnumerable enumerable) +31 
    45    Telerik.Web.UI.HierarchicalControlItemContainer.PerformDataBinding(IEnumerable data) +270 
    46    System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114 
    47    System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31 
    48    System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142 
    49    System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73 
    50    System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82 
    51    System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22 
    52    Telerik.Web.UI.RadDataBoundControl.OnPreRender(EventArgs e) +12 
    53    System.Web.UI.Control.PreRenderRecursiveInternal() +80 
    54    System.Web.UI.Control.PreRenderRecursiveInternal() +171 
    55    System.Web.UI.Control.PreRenderRecursiveInternal() +171 
    56    System.Web.UI.Control.PreRenderRecursiveInternal() +171 
    57    System.Web.UI.Control.PreRenderRecursiveInternal() +171 
    58    System.Web.UI.Control.PreRenderRecursiveInternal() +171 
    59    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842 
    60  

  2. James@Nw
    James@Nw avatar
    265 posts
    Registered:
    05 May 2009
    07 Dec 2009
    Link to this post
    Ok, I have recreated my page and slowly started adding the content. It seems as soon as I drop in my Site Menu, the error happens.

    Any ideas?

    Thanks,
    James
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    07 Dec 2009
    Link to this post
    Hi James,

    Can you check whether you populate the RadMenu items from Xml data source. The error is thrown from XmlReader class. The error message says that there are not closed elements at the end.


    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  4. James@Nw
    James@Nw avatar
    265 posts
    Registered:
    05 May 2009
    07 Dec 2009
    Link to this post
    Hi Ivan,

    Thanks for getting back to me on this! Much appreciated.

    I am using the default menu control which comes with Sitefinity which I believe is a RadMenu and which uses XML yes.

    Any other ideas?

    Cheers,
    James
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    08 Dec 2009
    Link to this post
    Hello James,

    But you do not populate the RadMenu from XML data source. I will get back to the support request you have opened.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. James@Nw
    James@Nw avatar
    265 posts
    Registered:
    05 May 2009
    08 Dec 2009
    Link to this post
    Hi Ivan,

    I think my brother has opened another thread on this issue.

    I'd made a mistake on my last post where I said that I am using a RadMenu where in fact I am using a Site Menu which is pulling the contents of the Nav from the XML created by the pages.

    Will speak to my brother later and send you the post he has sent through (if you have not already seen it)

    Thanks again!
    James
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    08 Dec 2009
    Link to this post
    Hello James,

    Just to let you know the SiteMenu control is not populated from XML DataSource as you have written. It is populated from CmsSiteMapProvider class.


    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  8. James@Nw
    James@Nw avatar
    265 posts
    Registered:
    05 May 2009
    08 Dec 2009
    Link to this post
    ok cool, thanks for letting me know Ivan.

    I see you are dealing with Jacques on the issue in the ticket related to this post.

    Cheers,
    James
Register for webinar
8 posts, 0 answered