I have a custom User Profile setup, and a matching class that inherits from Telerik.Sitefinity.Security.Model.UserProfile. I copied a lot of the code from Telerik.Sitefinity.Security.Model.SitefinityProfile but updated to use my custom Profile's fields. In my Registration Widget template, I am setting the DataFieldName and DataItemType properties:
Value='<%# Eval("CompanyName")%>' />
Unfortunately when submitting the form, I am getting the error:
Value cannot be null.
Parameter name: Can't create a profile instance because no dynamic type with name "My.Custom.UserProfile" was found
The class is definitely being compiled and referenced by the Web Application. Does anyone have any ideas, or an example of this working?