Copied to clipboard

Flag this post as spam?

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


  • Pete 152 posts 176 karma points
    Jun 30, 2010 @ 13:23
    Pete
    0

    Error trying to debug EventHandler

    When debugging in VS2008, in my EventHandler only (works everywhere else) I get an error about no source available followed by an error "No parent node." The first error provides the disassembly below. 

    I have a breakpoint on the opening brace for PublishNewsEventHandler, which is never hit.

    The EventHandler code is:

     

    public class PublishNewsEventHandler : ApplicationBase

        {

            public PublishNewsEventHandler()

            {

                Document.AfterPublish += new Document.PublishEventHandler(Document_AfterPublish);

            }

     

            void Document_AfterPublish(Document sender, umbraco.cms.businesslogic.PublishEventArgs e)

            {

                if (sender.ContentType.Alias == "News Article")

                {

                }

            }

        }

     

     

    Disassembly:

    --- d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\presentation\umbraco\masterpages\umbracoPage.Master.cs 

    00000000  push        ebp  

    00000001  mov         ebp,esp 

    00000003  push        edi  

    00000004  push        esi  

    00000005  push        ebx  

    00000006  sub         esp,34h 

    00000009  xor         eax,eax 

    0000000b  mov         dword ptr [ebp-10h],eax 

    0000000e  xor         eax,eax 

    00000010  mov         dword ptr [ebp-1Ch],eax 

    00000013  mov         dword ptr [ebp-3Ch],ecx 

    00000016  mov         dword ptr [ebp-40h],edx 

    00000019  cmp         dword ptr ds:[00B1B2C4h],0 

    00000020  je          00000027 

    00000022  call        6162D709 

    00000027  nop              

    00000028  mov         edx,dword ptr [ebp+8] 

    0000002b  mov         ecx,dword ptr [ebp-3Ch] 

    0000002e  mov         eax,dword ptr [ecx] 

    00000030  call        dword ptr [eax+000001A8h] 

    00000036  nop              

    00000037  nop              

    00000038  lea         esp,[ebp-0Ch] 

    0000003b  pop         ebx  

    0000003c  pop         esi  

    0000003d  pop         edi  

    0000003e  pop         ebp  

    0000003f  ret         4   

     

  • Pete 152 posts 176 karma points
    Jun 30, 2010 @ 13:35
    Pete
    0

    Stack trace:

       at umbraco.cms.businesslogic.CMSNode.get_Parent() in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\cms\businesslogic\CMSNode.cs:line 260

       at Dascoba.Umb.LocationBar.BreadCrumb.GetBreadCrumbPane(CMSNode cmsNode, Section section, Pane containerPane)

  • Pete 152 posts 176 karma points
    Jun 30, 2010 @ 13:48
    Pete
    0

    I've uninstalled the location bar above and no longer get that error. 

Please Sign in or register to post replies

Write your reply to:

Draft