Copied to clipboard

Flag this post as spam?

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


  • Tizer 170 posts 201 karma points
    Aug 09, 2010 @ 08:48
    Tizer
    0

    No node exists with id '0'

    So I seem to make a habit of not getting things to work in umbraco :(

    I have a .NET usercontrol which is working on my testing server.

    I recreated all the document types, templates, content and uploaded all the required files - duplicated my testing server exactly - but when I go to test the page - I get the following error:

    [ArgumentException: No node exists with id '0']
    umbraco.cms.businesslogic.CMSNode.setupNode() +459
    umbraco.cms.businesslogic.CMSNode..ctor(Int32 Id) +25
    umbraco.cms.businesslogic.Content..ctor(Int32 id) +46
    ASP.usercontrols_sendemailcontrol_ascx.Page_Load(Object sender, EventArgs e) +60
    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) +99
    System.Web.UI.Control.LoadRecursive() +50
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Control.LoadRecursive() +141
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

    I have read some forum posts about memberships problems which sometimes arise with this error - but I am not using members at all - any ideas?

     

     

  • Bogdan 250 posts 427 karma points
    Aug 09, 2010 @ 12:34
    Bogdan
    0

    What does your usercontrol do? Did you copy the whole database or manually recreated the content? If so, the node ids are different.

  • Sascha Wolter 615 posts 1101 karma points
    Aug 09, 2010 @ 16:06
    Sascha Wolter
    0

    Hi Tye,

    as bfi correctly mentioned if you 'recreate' your live site it still won't be a mirror of it as generated ID's etc. will most likely not match.

    For creating a copy of your live site on your local machine I would roughly do the following:

    1. make a backup of the database and restore it on your local machine (you can also just connect to your live database but it's certainly not advisable and a bit beside the point); make sure you can log in with the db user and the connection settings are set properly (TCP/IP and named pipes)

    1.a you might have to create the sql user the first time, preferably using the exact same properties as on the live site

    2. copy over the all files from your server

    3. check permissions on the files so it works with your local app pool

    4. Create a new web site for localhost

    And that should pretty much be it. Depending on your configuration you might have to do a couple of steps more but this way you should get an exact copy of your live site.

    Hope that helps,
    Sascha

Please Sign in or register to post replies

Write your reply to:

Draft