Copied to clipboard

Flag this post as spam?

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


  • Peter Holmsgaard 69 posts 106 karma points
    Jul 19, 2010 @ 14:03
    Peter Holmsgaard
    0

    Error when trying to create new node from a custom usercontrol

    Hey,

    I've viewed a couple of tutorials from the umbraco.tv, but one of the first examples just won't work.

    I'm trying to create a new node from the video called "Creating data programmatically" (http://tv.umbraco.org/documentation/videos/for-developers/working-with-data/creating-data-programmatically) - when using the examples i get this a viewstate error: (The Viewstate error is in danish, sorry :))

    [HttpException (0x80004005): ViewState blev ikke indlæst. Det kontroltræ, ViewState indlæses i, skal svare til det kontroltræ, der blev brugt til at gemme ViewState under den forrige anmodning. Hvis du f.eks. tilføjer objekter dynamisk, skal typen og placeringen af de objekter, der tilføjes under en tilbagesendelse, svare til de objekter, der blev tilføjet under den første anmodning.]
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +327
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +148
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +225
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +148
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +225
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +148
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +225
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +148
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +225
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +148
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +225
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +148
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +225
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +148
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +225
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +148
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +225
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +148
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +225
       System.Web.UI.Page.LoadAllState() +312
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +747

    Anyone that can help?

    /Peter

Please Sign in or register to post replies

Write your reply to:

Draft