Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
I'm trying to create a member but are receiving this weird error.
Umbraco.Core.Services.IMemberService' does not contain a definition for 'Save'
My API code
var newmember = ApplicationContext.Current.Services.MemberService.CreateMember(user.email, user.email, user.name, "MyGift"); ApplicationContext.Current.Services.MemberService.Save(newmember, false);
What am I missing?
Hi Anton,
This code works fine for me:
Services.MemberService.Save(currentMember);
Yeah it is damn strange . I can see the fuction in intellisence but it crashes at runtime
was member created successfully?
Is your user object a dynamic? I had a similar issue but for GetByEmail when I was passing in user.Email where user was a dynamic object I had created by parsing JSON. In my case, casting the properties to string seemed to make it work.
user
GetByEmail
user.Email
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco.Core.Services.IMemberService' does not contain a definition for 'Save'
Hi
I'm trying to create a member but are receiving this weird error.
Umbraco.Core.Services.IMemberService' does not contain a definition for 'Save'
My API code
What am I missing?
Hi Anton,
This code works fine for me:
Yeah it is damn strange . I can see the fuction in intellisence but it crashes at runtime
was member created successfully?
Is your
user
object a dynamic? I had a similar issue but forGetByEmail
when I was passing inuser.Email
whereuser
was a dynamic object I had created by parsing JSON. In my case, casting the properties to string seemed to make it work.is working on a reply...