Hi - I can't recreate this, even adding a mandatory property I am still able to create using the API.
The "KeyNotFoundException" is a bit of a generic one that you might see from time to time in Umbraco. I would try republishing all your content (using dialogs/republish.aspx?xml=true) and then do an iisreset and try again, still get the error please post us the full exception here - cheers!
Issue when creating member with extended properties
I am working on umbraco v. 4.7 and need to create umbraco members using the API.
First I create a member type in Umbraco site(called 'PowerUser'). Then it added to the web.config file as a "defaultMemberTypeAlias".
Then I was able to create a New member with the following code without any issues.
Then I add a new property to the member type. (called 'FirstName'). Then I try to create new member it throws the following error.
Exception Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
Your help to resolve this issue is highly appreciated.
Do you get the error only when creating in code, or also when using the Umbraco admin screens?
Could you post the full exception as well - cheers!
I can create users in admin site. But I can't do the same in my site using Umbraco API.
Hi - I can't recreate this, even adding a mandatory property I am still able to create using the API.
The "KeyNotFoundException" is a bit of a generic one that you might see from time to time in Umbraco. I would try republishing all your content (using dialogs/republish.aspx?xml=true) and then do an iisreset and try again, still get the error please post us the full exception here - cheers!
is working on a reply...