Copied to clipboard

Flag this post as spam?

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


  • Paul Sørensen 302 posts 648 karma points
    Dec 19, 2010 @ 14:04
    Paul Sørensen
    0

    Debugging the Umbraco source

     

    Hi

    In order to improve my chances of finding problems I sometimes run into when building new components, I've have been trying to debug through the Umbraco source. I have setup a site locally and I was running fine until started debugging from the source. 

    Then suddenly the Content tree was empty. Using Fiddler I can see the calls performed, but I'm not quiet sure which one to look for when trying to find out what goes wrong.

     

     

    All the other trees are also empty - Media, Developer etc

    I'm using Umbraco 4.5.2 on Windows Server 2008 R2.

    So my question is: Which call loads the tree?

     

    Thanks

    Paul S

     

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Dec 19, 2010 @ 14:50
    Stefan Kip
    0

    /umbraco/webservices/TreeDataService.ashx?rnd=xxxxxxxx&id=-1&treeType=content&contextMenu=true&isDialog=false&rnd2=xx.x

  • Paul Sørensen 302 posts 648 karma points
    Dec 19, 2010 @ 18:32
    Paul Sørensen
    0

    Hi

    That's the file I have been looking at but I can't find the code in the treedataService.ashx.cs file to process the call. I don't see that request in Fiddler either - that's properly the reason why my tree is empty. 

    So the question narrows down to - why doesn't this service get called

    Thanks
    /Paul S

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Dec 19, 2010 @ 18:40
    Stefan Kip
    0

    Sounds like a javascript issue then... Javascript not getting loaded? Can you take a look with Firebug if there are 404 requests? (Net tab)

  • Paul Sørensen 302 posts 648 karma points
    Dec 19, 2010 @ 19:00
    Paul Sørensen
    0

    Hi

    Fiddler says

    # Result Protocol Host URL Body Caching Content-Type Process Comments Custom

    3661 404 HTTP localhost:6759 /favicon.ico 2.308 private   text/html; charset=utf-8 chrome:3840

    I'll try and see if Firefow tells me more.
    I have deleted the AjaxControlToolkit.dll in my bin - made no difference. Think I have seen somewhere that it's not needed anymore.
    /Paul S
    (Found the way into treedataservice.ashx.cs - it's ProcessRequest )

  • Aaron Powell 1708 posts 3044 karma points c-trib
    Dec 19, 2010 @ 23:21
  • Aaron Powell 1708 posts 3044 karma points c-trib
    Dec 19, 2010 @ 23:21
  • Paul Sørensen 302 posts 648 karma points
    Dec 20, 2010 @ 22:41
    Paul Sørensen
    0

     

    Hi

    I went tthrough the links without finding THE solution. I did however click the Create button at the top - I have never been using it before so I guess that why I haven't seen it before.

    The create dialog pops up and shows my content ???. When I then create content by clicking the root node I get

    No Document exists with Version '00000000-0000-0000-0000-000000000000'

    I then do the same clicking a subnode and the node gets created. I can see it in the create Dialog but still not in the Content tree ??

    So I guess it's not an Ajax problem since the tree is displayed in the Create Content dialog.

    /Paul S

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies