Copied to clipboard

Flag this post as spam?

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


  • Sören Deger 733 posts 2844 karma points c-trib
    May 23, 2014 @ 15:03
    Sören Deger
    0

    NullReferenceException after submit from standard registerMember.cshtml

    Hi,

    I use the standard Umbraco "Register Member" script in Umbraco 7.1.1 and it works at beginning.

    But now, I get the following error, after I post the register form:



    I can not understand this unfortunately? Does anyone have any idea what this could be?


    Best regards

    Sören

  • Jan Skovgaard 11280 posts 23678 karma points MVP 12x admin c-trib
    May 23, 2014 @ 15:29
    Jan Skovgaard
    0

    Hi Sören

    Not sure what the error is all about but I'm wondering if it might be worth trying to upgrade to 7.1.3 and see if the issue persists?

    /Jan

  • Sören Deger 733 posts 2844 karma points c-trib
    May 27, 2014 @ 09:22
    Sören Deger
    0

    Hi Jan,

    I have upgrade to 7.1.3, but the issue exist now.

     

    Sören

  • Sören Deger 733 posts 2844 karma points c-trib
    May 27, 2014 @ 09:39
    Sören Deger
    0

    I have now install a clean 7.1.3 and it works great. But in my old upgraded instance it doesn't works. Looks like an issue in my old instance. I check this again...

  • Sören Deger 733 posts 2844 karma points c-trib
    May 28, 2014 @ 09:52
    Sören Deger
    0

    The same issue exist again!

    I have create the following simple eventhandler:

    public class Eventhandler : ApplicationEventHandler
        {
            public Eventhandler()
            {
                MemberService.Created += MemberService_Created;
            }

            void MemberService_Created(IMemberService sender, NewEventArgs<IMember> e)
            {
                IMemberService memberService = ApplicationContext.Current.Services.MemberService;
                string code = Guid.NewGuid().ToString();
                e.Entity.SetValue("activationCode", code);
                memberService.Save(e.Entity);
          }
        }

    It works great at first time. But if I register a second Member I get the exact error message from my first post above. Before I create the Eventhandler, I have register a lot of Members without problems. If I delete the eventhandler in my project, compile the project again and copy the project-dll without the eventhandler code in the bin folder, I get the error message still. I have recycle AppPool and clear the cache of browser, but nothing works. This is the same issue like 5 days ago.

    Sören

  • Sören Deger 733 posts 2844 karma points c-trib
    May 28, 2014 @ 09:56
    Sören Deger
    0

    And now, after I log in to umbraco I see a white clean page without backend. Umbraco is crashed... But the frontend works...

  • Sören Deger 733 posts 2844 karma points c-trib
    May 28, 2014 @ 10:25
    Sören Deger
    0

    Ok, something is wrong with my umbraco instance. Just do not understand it....I tested this with a new clean umbraco instance, now. And it works in this every time. Now, I use the new clean umbraco instance and delete the old...

  • 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