Copied to clipboard

Flag this post as spam?

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


  • Glen 36 posts 168 karma points
    Sep 29, 2016 @ 07:49
    Glen
    0

    Error occurred when instantiating a MembershipHelper

    Hi,

    I know it's a silly question I'am trying to do this in my template.

    enter image description here

    but it show error's.

    enter image description here

    What did I missed?

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Sep 29, 2016 @ 13:14
    Alex Skrypnyk
    0

    Hi Glen,

    Nice question.

    Where do you user this code?

    In Razor view - it works for me:

    var membershipHelper = new MembershipHelper(UmbracoContext.Current);
    

    Thanks,

    Alex

  • Glen 36 posts 168 karma points
    Sep 30, 2016 @ 01:49
    Glen
    0

    Hi Alex,

    Thanks for the response Yes in razor I forgot to import this, silly me.

    enter image description here

    is there any other approach for this? my VS2012 is not showing any hint.

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Sep 30, 2016 @ 16:23
    Alex Skrypnyk
    100

    Hi Glen

    Do you have a problem with intellisense in VS?

    Am I right?

    Thanks

  • Glen 36 posts 168 karma points
    Oct 01, 2016 @ 01:31
    Glen
    0

    Hi Alex,

    Yeah you're right I will update my razor to the latest version.

    Again a big Thanks.

    Glen

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Oct 01, 2016 @ 08:29
    Alex Skrypnyk
    0

    Glen, you are welcome!

    If this topic solved?

    Have a nice day!!!

  • Glen 36 posts 168 karma points
    Oct 03, 2016 @ 02:28
    Glen
    0

    Hi Alex,

    Yes already solved Thank you so much

    for you time.

    Glen

  • 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