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.
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.
is working on a reply...