Copied to clipboard

Flag this post as spam?

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


  • George 13 posts 29 karma points
    Feb 22, 2011 @ 17:03
    George
    0

    Love the control but getting error this when i publish without using it on a given page

    This is a great control. However I'm getting this error when I have it in a tab but don't actually use it for a given page: Root element is missing. 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.Xml.XmlException: Root element is missing. 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: [XmlException: Root element is missing.] System.Xml.XmlTextReaderImpl.Throw(Exception e) +73 System.Xml.XmlTextReaderImpl.ParseDocumentContent() +4076618 System.Xml.XmlTextReaderImpl.Read() +145 System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +114 System.Xml.XmlDocument.Load(XmlReader reader) +114 System.Xml.XmlDocument.LoadXml(String xml) +168 TheFarm.Umbraco.EmbeddedContent.DataEditor.DataEditorControl_OnSave(EventArgs e) +237 umbraco.cms.businesslogic.datatype.AbstractDataEditorControl.FireOnSave(EventArgs e) +18 umbraco.cms.businesslogic.datatype.AbstractDataEditorControl.Save() +27 umbraco.controls.ContentControl.saveClick(Object Sender, ImageClickEventArgs e) +158 umbraco.controls.ContentControl.savePublish(Object Sender, ImageClickEventArgs e) +20 System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +115 System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120 System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

  • Sascha Wolter 615 posts 1101 karma points
    Feb 22, 2011 @ 23:06
    Sascha Wolter
    0

    Hi George,

    thanks very much for bringing this up, I'll have a look asap and will let you know here when I publish a fix for it.

    Cheers,

    Sascha

  • Sascha Wolter 615 posts 1101 karma points
    Feb 25, 2011 @ 07:38
    Sascha Wolter
    0

    Hi George,

    I wasn't able to replicate the issue I'm afraid, but have nevertheless included a try/catch block on the save method that should prevent this kind of error. Feel free to give version 1.1.1 a try and see if it's working now for you. 

    Unfortunately I get an error when I try to edit the package page, so I'm afraid you'll have to download the package yourself from here.

    Cheers,

    Sascha

  • George 13 posts 29 karma points
    Feb 25, 2011 @ 13:39
    George
    0

    Hi Sascha, Thanks for the update. From the package I added the dll only and got this error instead (see below). Do I need to uninstall/reinstall the package for this to work? Cheers George Server Error in '/' Application. -------------------------------------------------------------------------------- Illegal characters in path. 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.ArgumentException: Illegal characters in path. 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: [ArgumentException: Illegal characters in path.] System.IO.Path.CheckInvalidPathChars(String path) +126 System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength) +145 System.IO.Path.GetFullPathInternal(String path) +46 System.IO.Path.GetFullPath(String path) +33 System.Xml.XmlResolver.ResolveUri(Uri baseUri, String relativeUri) +97 System.Xml.XmlUrlResolver.ResolveUri(Uri baseUri, String relativeUri) +9 System.Xml.XmlTextReaderImpl..ctor(String url, XmlNameTable nt) +102 System.Xml.XmlDocument.Load(String filename) +79 TheFarm.Umbraco.EmbeddedContent.DataEditor.DataEditorControl_OnSave(EventArgs e) +2576 umbraco.cms.businesslogic.datatype.AbstractDataEditorControl.FireOnSave(EventArgs e) +18 umbraco.cms.businesslogic.datatype.AbstractDataEditorControl.Save() +27 umbraco.controls.ContentControl.saveClick(Object Sender, ImageClickEventArgs e) +158 umbraco.controls.ContentControl.savePublish(Object Sender, ImageClickEventArgs e) +20 System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +115 System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120 System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

  • Sascha Wolter 615 posts 1101 karma points
    Feb 25, 2011 @ 15:42
    Sascha Wolter
    0

    Hey George,

    yes, can you please uninstall the package completely via the package uninstaller and then install it via 'install local package'? You won't be able to modify your Embedded Content instances nor the nodes which have instances of the data type on them while you are doing the re-install, yet since the GUID of the data type is fixed everything will be fine once you are done. It might also be advisable - if you haven't done too much with the data type yet - to also delete all instances and re-create them as there might be some misconfigurations due to the original error you had. 

    Let me know how it goes,

    Sascha

  • George 13 posts 29 karma points
    Feb 25, 2011 @ 17:55
    George
    0

    Hi Sascha,

     

    Did that and unfortunately it still gives me the same error:

    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    Illegal characters in path.
    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.ArgumentException: Illegal characters in path.

    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:


    [ArgumentException: Illegal characters in path.]
       System.IO.Path.CheckInvalidPathChars(String path) +126
       System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength) +145
       System.IO.Path.GetFullPathInternal(String path) +46
       System.IO.Path.GetFullPath(String path) +33
       System.Xml.XmlResolver.ResolveUri(Uri baseUri, String relativeUri) +97
       System.Xml.XmlUrlResolver.ResolveUri(Uri baseUri, String relativeUri) +9
       System.Xml.XmlTextReaderImpl..ctor(String url, XmlNameTable nt) +102
       System.Xml.XmlDocument.Load(String filename) +79
       TheFarm.Umbraco.EmbeddedContent.DataEditor.DataEditorControl_OnSave(EventArgs e) +2576
       umbraco.cms.businesslogic.datatype.AbstractDataEditorControl.FireOnSave(EventArgs e) +18
       umbraco.cms.businesslogic.datatype.AbstractDataEditorControl.Save() +27
       umbraco.controls.ContentControl.saveClick(Object Sender, ImageClickEventArgs e) +158
       umbraco.controls.ContentControl.savePublish(Object Sender, ImageClickEventArgs e) +20
       System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +115
       System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120
       System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

     


    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

     

     

     

     

  • Sascha Wolter 615 posts 1101 karma points
    Feb 28, 2011 @ 01:58
    Sascha Wolter
    0

    Hi George,

    awefully sorry it's still not working 100%. I'll have to look at the new error in a bit. Can you please let me know:

    - Your Umbraco version

    - Steps how I could re-create the issue, e.g.

    1. install the package

    2. create a new data type of type Embedded content

    3. Add the follwing fields to it: xxx (you did create fields for the Embedded Content data type, right?)

    4. Place the data type on a document type

    5. Create a new content node of said document type

    6. ???

    7. Save the content type and see my error

    It would be really helpful if you can provide me this information and I'll do my best to track this down and upload a new fix in time.

    Many thanks for your help,

    Sascha

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Mar 16, 2011 @ 17:47
    Tom Fulton
    0

    Hi Sascha,

    I started getting the Illegal Characters in Path error also recently.

    I did some testing and figured out how to reproduce it.  The issue seems to occur when the document contains another control that does a Postback.

    I am able to reproduce on a fresh install by adding a simple datatype (via usercontrolwrapper) that only contains a Button and no extra codebehind.  When clicking the button, the Embedded Content UI goes funky, and when saving the Illegal Characters error appears.  If the button is not clicked everything saves fine.

    If the button is placed inside an UpdatePanel though, everything seems to work fine.  Maybe it's bad practice to do full postbacks from datatypes?

    Anyway, hope this might help...

    -Tom

  • Sascha Wolter 615 posts 1101 karma points
    Mar 20, 2011 @ 11:56
    Sascha Wolter
    0

    Hi Tom,

    thanks very much for the hint, that's great. I can literally see how the Embedded Content control blows up when another usercontrol does a postback which is not an Umbraco event. Will investigate what is the actual reason for the error and give you an update. :)

    Thanks again for your help,

    Sascha

  • Sascha Wolter 615 posts 1101 karma points
    Mar 21, 2011 @ 02:00
    Sascha Wolter
    1

    Hi guys,

    I hope that I've finally found a cure for this. Please have a go at version 1.1.2 which I've just uploaded and please let me know if you still run into trouble.

    Cheers,

    Sascha

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Mar 21, 2011 @ 15:13
    Tom Fulton
    0

    Hi Sascha,

    This fixed the issue for me (1.1.3).  Thanks again!

    -Tom

  • Sascha Wolter 615 posts 1101 karma points
    Mar 23, 2011 @ 12:50
    Sascha Wolter
    0

    Hey Tom,

    glad that it got solved now and is working for you. :)

    Cheers,

    Sascha

  • George 3 posts 23 karma points
    Mar 23, 2011 @ 17:16
    George
    0

    Hi Sascha,

     

    This still didn't work for me.  I'm using umbraco 4.7 beta.  Still receiving same error but its only when I use this in conjunction with another package called attackmonkey tabhider.  My steps :

    Install both packages

    Created the embedded content datatype with a fields

    Added to a doc type

    Create page of above doctype

    At this point everything works as expected.

    If i then hide the tab with the tab hider package and try to save that page i receive the error in my first post.

    Since then I have tried it with new 1.1.3 package and I get the same error.  Whats worse is that all of my existing data within my embedded content controls has just disappeared with the new 1.1.3 install.  I didn't really want to ditch the tabhider package to use you embedded content control as its quite important to me and would really love them both to work.  It just appears that the embedded content control is trying to save something when its not required to.

     

  • Sascha Wolter 615 posts 1101 karma points
    Mar 24, 2011 @ 02:58
    Sascha Wolter
    0

    Hi George,

    thanks for flagging this up. I'm awefully sorry if all your data which was managed by EmbeddedContent, however don't know how that could have happened, when you upgrade the data type the content itself will not get touched, only when you publish the nodes that contain the content? And I haven't changed the way that data gets stored since version 1.0. However if you save a page and EmbeddedContent hickups because it's currently not working with the tab hider then it's a very good possibility that the data handled by EmbeddedContent on that page is overwritten. It would be good to know if that is what happens, because it would indicate if the error happens before the save or after when the control tries to initialize itself.

    I'll look into it, sorry for any inconvenience...

    Sascha

  • George 3 posts 23 karma points
    Mar 24, 2011 @ 15:09
    George
    0

    Hi Sascha,

    No apologies necessary.  The data disappeared simply by updating the dlls you included.  This was prior to me doing any saves.  When this broke, I figured the next step was to try and install the new package in the typical way as I thought maybe theres extra configuration files that need to be updated also.  Again I didn't save or publish.  I simply pulled up pages that used the embedded content and could see that the data was missing.  In actual fact its not missing because when I put the old dlls back the data reappeared.  So in essence just overwriting the new libraries for some reason causes the data to be hidden.

    So it looks like I've stumbled upon a separate issue. 

    After I did a save I received the same error that I started this thread with.

    Cheers

    George

  • Leke 1 post 21 karma points
    Sep 01, 2011 @ 02:10
    Leke
    0

    Sorry guys,

    I don't know if this is the right place to post this but I am getting an annoying error when I try to click on save or save and publish:

    Server Error in '/' Application.

    Object reference not set to an instance of an object.

    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.NullReferenceException: Object reference not set to an instance of an object.

    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: 

    [NullReferenceException: Object reference not set to an instance of an object.]

       umbraco.editorControls.ultimatepicker.ultimatePickerDataEditor.Save() +508

       umbraco.controls.ContentControl.saveClick(Object Sender, ImageClickEventArgs e) +158

       umbraco.controls.ContentControl.savePublish(Object Sender, ImageClickEventArgs e) +20

       System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +115

       System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +120

       System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10

       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13

       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36

       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

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

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

    Can anyone help please?
    Thanks in advance. Leke 

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Sep 01, 2011 @ 13:51
    Tom Fulton
    0

    Leke,

    Are you using the Embedded Content control?  It looks like your error is with the Ultimate Picker, and I think it's caused by having an Ultimate Picker on your doctype but not having it's Parent ID set in the prevalues in the Developer -> Datatype section.  If that doesn't do the trick you might want to start another thread on it.

    -Tom

  • Andrew Arnott 7 posts 58 karma points
    Dec 16, 2013 @ 18:27
    Andrew Arnott
    0

    Hi.

    I am getting the error whenever I try to include a link to a node that has a "&" in its name

    Server Error in '/' Application.
    ________________________________________
    Illegal characters in path.
    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.ArgumentException: Illegal characters in path.
    
    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: 
    
    [ArgumentException: Illegal characters in path.]
       System.IO.Path.CheckInvalidPathChars(String path) +142
       System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength) +100
       System.IO.Path.GetFullPath(String path) +187
       System.Xml.XmlResolver.ResolveUri(Uri baseUri, String relativeUri) +131
       System.Xml.XmlTextReaderImpl..ctor(String url, XmlNameTable nt) +135
       System.Xml.XmlDocument.Load(String filename) +85
       TheFarm.Umbraco.EmbeddedContent.DataEditor.DataEditorControl_OnSave(EventArgs e) +2193
       umbraco.controls.ContentControl.SetNameAndDataTypeValues() +407
       umbraco.controls.ContentControl.DoSaveAndPublish(Object sender, ImageClickEventArgs e) +24
       System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +187
       System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +165
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3707
    
    ________________________________________
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1016
    

    Short of forbidding the & character, which would not be the easiest job in the world, considering we are taking over an existing site and migrating it to Umbraco, do you have any suggestions?

    Thanks, Andy

Please Sign in or register to post replies

Write your reply to:

Draft