Copied to clipboard

Flag this post as spam?

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


  • Connie DeCinko 931 posts 1158 karma points
    Aug 29, 2013 @ 20:03
    Connie DeCinko
    0

    Specified cast is not valid

    I've tried at least three times to install uBootstrap on a clean Umbraco 6.1.4 install. Each time, a few seconds into the install I get the following error and am left with an incomplete install. The only clean thing I am left to do is blow away my install and create another fresh install of Umbraco.

    Server Error in '/' Application.
    --------------------------------------------------------------------------------
    
    
     Specified cast is not valid. 
    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.InvalidCastException: Specified cast is not valid.
    
    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: 
    
    
    
    
    
    [InvalidCastException: Specified cast is not valid.]
       umbraco.editorControls.datepicker.DateData.ToXMl(XmlDocument d) +87
       Umbraco.Core.Models.PropertyExtensions.ToXml(Property property, IDataTypeService dataTypeService) +368
       Umbraco.Core.Models.PropertyExtensions.ToXml(Property property) +38
       Umbraco.Core.Services.PackagingService.Export(IContentBase contentBase, String nodeName) +1262
       Umbraco.Core.Services.PackagingService.Export(IContent content, Boolean deep) +119
       Umbraco.Core.Models.ContentExtensions.ToXml(IContent content) +42
       Umbraco.Web.Search.ExamineEvents.IndexConent(IContent sender) +22
       Umbraco.Core.EnumerableExtensions.ForEach(IEnumerable`1 items, Action`1 action) +147
       Umbraco.Web.Search.ExamineEvents.ContentServiceSaved(IContentService sender, SaveEventArgs`1 e) +57
       Umbraco.Core.Events.EventExtensions.RaiseEvent(TypedEventHandler`2 eventHandler, TArgs args, TSender sender) +16
       Umbraco.Core.Services.ContentService.Save(IEnumerable`1 contents, Int32 userId, Boolean raiseEvents) +647
       Umbraco.Core.Services.PackagingService.ImportContent(XElement element, Int32 parentId, Int32 userId) +195
       umbraco.cms.businesslogic.packager.Installer.InstallBusinessLogic(Int32 packageId, String tempDir) +2575
       umbraco.presentation.developer.packages.Installer.ProcessInstall(String currentStep) +208
       umbraco.presentation.developer.packages.Installer.Page_Load(Object sender, EventArgs e) +435
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +91
       umbraco.BasePages.BasePage.OnLoad(EventArgs e) +14
       System.Web.UI.Control.LoadRecursive() +74
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
    
    
    
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 
    
  • Joao Rochate 3 posts 23 karma points
    Aug 30, 2013 @ 01:19
    Joao Rochate
    0

    I'm having the same problem in installing package Standard Website MVC.

    In my case, the stack is a little different:

       [InvalidCastException: Specified cast is not valid.]
       umbraco.editorControls.datepicker.DateData.ToXMl(XmlDocument d) +149
       Umbraco.Core.Models.PropertyExtensions.ToXml(Property property, IDataTypeService dataTypeService) +534
       Umbraco.Core.Services.PackagingService.Export(IContentBase contentBase, String nodeName) +1507
       Umbraco.Core.Services.PackagingService.Export(IContent content, Boolean deep) +241
       Umbraco.Web.Search.ExamineEvents.IndexConent(IContent sender) +76
       Umbraco.Core.EnumerableExtensions.ForEach(IEnumerable`1 items, Action`1 action) +148
       Umbraco.Core.Services.ContentService.Save(IEnumerable`1 contents, Int32 userId, Boolean raiseEvents) +913
       Umbraco.Core.Services.PackagingService.ImportContent(XElement element, Int32 parentId, Int32 userId) +288
       umbraco.cms.businesslogic.packager.Installer.InstallBusinessLogic(Int32 packageId, String tempDir) +2460
       umbraco.presentation.developer.packages.Installer.ProcessInstall(String currentStep) +716
       umbraco.presentation.developer.packages.Installer.Page_Load(Object sender, EventArgs e) +618
       umbraco.BasePages.BasePage.OnLoad(EventArgs e) +19
       System.Web.UI.Control.LoadRecursive() +71
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178
    
  • Connie DeCinko 931 posts 1158 karma points
    Aug 30, 2013 @ 01:22
    Connie DeCinko
    0

    What makes no sense is I have two identical servers, installed the same exact copy of Umbraco and the first server is fine. The error occurs on the second server.

    Looks like we both got errors about the date type and/or the date picker.

  • Mihai Savu 11 posts 75 karma points
    Nov 03, 2014 @ 21:36
Please Sign in or register to post replies

Write your reply to:

Draft