Adding contents to multitype data results in server error
Hi Ben
I am using Umbraco v
4.7.0 (Assembly version: 1.0.4090.21631), on windows 7. I installed MultiType DataType v2.0, so i could create a template data type with a couple of textstrings, media selector, content selector and simple editors. So far it looked to solve my problem.
In the content section, when I click on "add", I am correctly shown the option to add appropriate data in the template data type created. But when I finally try and "Add" it, it blows up with the error mentioned below.
I would love to use this data type, please can you let me know what is causing this problem so I could fix it.
Thanks
Guru
Server Error in '/' Application.
The ' ' character, hexadecimal value 0x20, cannot be included in a name.
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: The ' ' character, hexadecimal value 0x20, cannot be included in a name.
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: The ' ' character, hexadecimal value 0x20, cannot be included in a name.]
System.Xml.XmlDocument.CheckName(String name) +5129750
System.Xml.XmlDocument.CreateElement(String prefix, String localName, String namespaceURI) +97
System.Xml.XmlDocument.CreateElement(String name) +182
_4Ben.DataTypes.MultiType.MultiTypeDataEditor.Save() +1623
_4Ben.DataTypes.MultiType.MultiTypeDataEditor.Add(Object sender, EventArgs e) +1853
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3691
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225
Thanks for using my datatype, I've not had any time at all to do any development on this for ages.
Anyway your error seems to suggest that in the developer section go to your MultiType data type under Data Types and check all the alias' of each property for spaces. The Alias value must not have any spaces in it. I should really be trimming or converting spaces when the xml is saved, this will have to go on my massive list of to-dos.
Adding contents to multitype data results in server error
Hi Ben
I am using Umbraco v 4.7.0 (Assembly version: 1.0.4090.21631), on windows 7. I installed MultiType DataType v2.0, so i could create a template data type with a couple of textstrings, media selector, content selector and simple editors. So far it looked to solve my problem.
In the content section, when I click on "add", I am correctly shown the option to add appropriate data in the template data type created. But when I finally try and "Add" it, it blows up with the error mentioned below.
I would love to use this data type, please can you let me know what is causing this problem so I could fix it.
Thanks
Guru
Server Error in '/' Application.
The ' ' character, hexadecimal value 0x20, cannot be included in a name.
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: The ' ' character, hexadecimal value 0x20, cannot be included in a name.
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:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225
Hi Guru,
Thanks for using my datatype, I've not had any time at all to do any development on this for ages.
Anyway your error seems to suggest that in the developer section go to your MultiType data type under Data Types and check all the alias' of each property for spaces. The Alias value must not have any spaces in it. I should really be trimming or converting spaces when the xml is saved, this will have to go on my massive list of to-dos.
Hope this helps.
Ben
Thanks Ben. That solved my problem. Great data type
is working on a reply...