Copied to clipboard

Flag this post as spam?

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


  • SWalker 2 posts 22 karma points
    Jun 09, 2014 @ 23:31
    SWalker
    0

    any ideas?

    I have an email app written in .net that sends an email to members that have permissions to see the content that was just published and that has opted in to receive emails.  This ran fine on 6.1.  Updated to 6.2 and now it gives me an "index out of range" error.  

    foreach (MembershipUser mem in Membership.GetAllUsers())

    ... 

    var m = Member.GetMemberByName(mem.UserName, true);  

     var mEmailBool = Convert.ToBoolean(m[0].getProperty("allowemail").Value); // Dies on this line

    I can see in mem the allowemail property set to true, but the m[0].getproperty line kills it.

    Any ideas how to fix this would be greatly appreciated.

     

Please Sign in or register to post replies

Write your reply to:

Draft