Copied to clipboard

Flag this post as spam?

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


  • Johan 188 posts 380 karma points
    Aug 21, 2014 @ 22:41
    Johan
    0

    Value cannot be null Error

    I'm getting the error below. Iv'e got a pretty big site and running 7.1.5. I tried on the staging site with no content. Just the stuff that uSync (not content edition) imported and it worked just fine. It is when i press export the error throws. I know it is not much to go on but maybe you can give me some pointers on how i could begin to narrow it down.

    Server Error in '/' Application.

    Value cannot be null. Parameter name: value

    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.ArgumentNullException: Value cannot be null. Parameter name: value

    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:

    [ArgumentNullException: Value cannot be null. Parameter name: value]
    System.Xml.Linq.XText..ctor(String value) +98242
    Umbraco.Core.PropertyEditors.PropertyValueEditor.ConvertDbToXml(Property property, PropertyType propertyType, IDataTypeService dataTypeService) +73 Umbraco.Core.Services.EntityXmlSerializer.Serialize(IDataTypeService dataTypeService, Property property) +316
    Umbraco.Core.Models.PropertyExtensions.ToXml(Property property) +51
    jumoo.usync.content.helpers.uSyncXmlHelper.ExportContentBase(String type, IContentBase item, Boolean mapProps) +1053
    jumoo.usync.content.ContentExporter.ExportContent(IContent content) +273 jumoo.usync.content.ContentExporter.SaveContent(IContent content, String path) +68
    jumoo.usync.content.ContentExporter.ExportSite(String path, IContent item, Boolean pairs) +431
    jumoo.usync.content.ContentExporter.ExportSite(String path, IContent item, Boolean pairs) +628
    jumoo.usync.content.ContentExporter.ExportSite(String path, IContent item, Boolean pairs) +628
    jumoo.usync.content.ContentExporter.ExportSite(String path, IContent item, Boolean pairs) +628
    jumoo.usync.content.ContentExporter.ExportSite(Boolean pairs) +665
    jumoo.usync.usyncui.uSyncTab.fullExport_Click(Object sender, EventArgs e) +105 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9628114 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +103
    System.Web.UI.WebControls.Button.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) +35 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724

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

    Thanks for your great work with uSync!

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Aug 21, 2014 @ 23:36
    Kevin Jump
    0

    Hi

    I've not yet had a chance to test on 7.1.5 so I've no real idea if its anything new ;

    best thing to do is look in the umbraco log file (in app_data/logs) it should show you the bit of content usync.content was exporting when it threw the error - if its the first bit of content, it's probably a more serious issue. if its just some random bit of content, try working out if that content type has something diffrent, (like a special data type or something) that might help isolate what causes it.

    you can also change the log level in config/log4net.config to Debug and get lots more info in the logs.

  • Justin Spradlin 139 posts 347 karma points
    Aug 25, 2014 @ 01:41
    Justin Spradlin
    0

    Hi,

    I am getting the same error. I turned up the log level to DEBUG and this is my output. 

    2014-08-24 18:36:59,226 [11] INFO  jumoo.usync.content.ContentSync - [Thread 1] uSync Content Edition Initilized [2.8812848 seconds]

    2014-08-24 18:36:59,283 [11] INFO  Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of Umbraco.Web.Trees.TreeController

    2014-08-24 18:36:59,284 [11] INFO  Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of Umbraco.Web.Trees.TreeController, found 5 (took 0ms)

    2014-08-24 18:36:59,294 [11] INFO  Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of umbraco.interfaces.ITree

    2014-08-24 18:36:59,295 [11] INFO  Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of umbraco.interfaces.ITree, found 19 (took 0ms)

    2014-08-24 18:36:59,334 [11] INFO  Umbraco.Web.Search.ExamineEvents - [Thread 1] Initializing Examine and binding to business logic events

    2014-08-24 18:36:59,478 [11] INFO  Umbraco.Web.Search.ExamineEvents - [Thread 1] Adding examine event handlers for index providers: 3

    2014-08-24 18:37:01,322 [11] INFO  umbraco.content - [Thread 1] Loading content from disk cache...

    2014-08-24 18:37:01,420 [11] INFO  Umbraco.Core.PluginManager - [Thread 1] Starting resolution types of umbraco.interfaces.IApplication

    2014-08-24 18:37:01,422 [11] INFO  Umbraco.Core.PluginManager - [Thread 1] Completed resolution of types of umbraco.interfaces.IApplication, found 8 (took 1ms)

    2014-08-24 18:37:12,379 [11] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 12] An unhandled exception occurred

    System.FormatException: Input string was not in a correct format.

       at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)

       at System.String.Format(IFormatProvider provider, String format, Object[] args)

       at System.String.Format(String format, Object arg0)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectorsForElementsWithTagName(List`1 elements, String selectorFormatString, SelectorGroupFunction[] groupMethods, Int32 startIndex)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectorsForElementsWithTagName(List`1 elements, String selectorFormatString, SelectorGroupFunction[] groupMethods, Int32 startIndex)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectorsForElementsWithTagName(List`1 elements, String selectorFormatString, SelectorGroupFunction[] groupMethods, Int32 startIndex)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectorsForElementsWithTagName(List`1 elements, String selectorFormatString, SelectorGroupFunction[] groupMethods, Int32 startIndex)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectorsWorker(IEnumerable`1 elements, String selectorFormatString, SelectorGroupFunction[] groupMethods)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateGlobalScopeSelectors(IEnumerable`1 elements)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectors(IEnumerable`1 elements)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.ProcessDataIntoJsonObjects(IEnumerable`1 renderedOutputList)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)

       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    2014-08-24 18:37:12,439 [11] INFO  Umbraco.Core.PluginManager - [Thread 13] Starting resolution types of Umbraco.Web.Trees.TreeController

    2014-08-24 18:37:12,439 [11] INFO  Umbraco.Core.PluginManager - [Thread 13] Completed resolution of types of Umbraco.Web.Trees.TreeController, found 5 (took 0ms)

    2014-08-24 18:37:12,465 [11] INFO  Umbraco.Core.PluginManager - [Thread 17] Starting resolution types of umbraco.interfaces.ITree

    2014-08-24 18:37:12,465 [11] INFO  Umbraco.Core.PluginManager - [Thread 17] Completed resolution of types of umbraco.interfaces.ITree, found 35 (took 0ms)

    2014-08-24 18:37:20,315 [11] INFO  Umbraco.Core.PluginManager - [Thread 16] Starting resolution types of Umbraco.Web.Trees.TreeController

    2014-08-24 18:37:20,315 [11] INFO  Umbraco.Core.PluginManager - [Thread 16] Completed resolution of types of Umbraco.Web.Trees.TreeController, found 5 (took 0ms)

    2014-08-24 18:37:20,480 [11] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 15] An unhandled exception occurred

    System.FormatException: Input string was not in a correct format.

       at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)

       at System.String.Format(IFormatProvider provider, String format, Object[] args)

       at System.String.Format(String format, Object arg0)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectorsForElementsWithTagName(List`1 elements, String selectorFormatString, SelectorGroupFunction[] groupMethods, Int32 startIndex)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectorsForElementsWithTagName(List`1 elements, String selectorFormatString, SelectorGroupFunction[] groupMethods, Int32 startIndex)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectorsForElementsWithTagName(List`1 elements, String selectorFormatString, SelectorGroupFunction[] groupMethods, Int32 startIndex)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectorsForElementsWithTagName(List`1 elements, String selectorFormatString, SelectorGroupFunction[] groupMethods, Int32 startIndex)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectorsWorker(IEnumerable`1 elements, String selectorFormatString, SelectorGroupFunction[] groupMethods)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateGlobalScopeSelectors(IEnumerable`1 elements)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.GenerateSelectors(IEnumerable`1 elements)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.MappingData.MappingDataUtilities.ProcessDataIntoJsonObjects(IEnumerable`1 renderedOutputList)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)

       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    2014-08-24 18:37:23,786 [11] INFO  Umbraco.Core.Publishing.PublishingStrategy - [Thread 12] Content 'XYZt' with Id '1098' has been published.

    2014-08-24 18:37:24,061 [11] INFO  jumoo.usync.content.ContentExporter - [Thread 12] Saving XYZ [XYZ]

    2014-08-24 18:37:24,064 [11] INFO  jumoo.usync.content.ContentExporter - [Thread 12] Exporting content XYZ

  • Justin Spradlin 139 posts 347 karma points
    Aug 25, 2014 @ 01:48
    Justin Spradlin
    0

    I had just added a new property that used a data type based off of the core Image Cropper. My type had 3 crops. I just removed this field from my document type and the save went through. 

    Since I don't have access to the source, I can't help debug. Please let me know if there is anything I can do to help test. 

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Aug 28, 2014 @ 17:09
    Kevin Jump
    0

    Hi

    Yes I think this is related to how the new Image Cropper stores values internally. I've updated uSync.ContentEdition to to v0.7.2 which has the patch supplied by Vincent Lui to fix this.

    there is also a nuget version now - this is also at v0.7.2

    K

Please Sign in or register to post replies

Write your reply to:

Draft