I'm tyring to develop a module that will help us add a new user to 10 different company system. DNN, Active Directory, exchange, GoldMine, Quoteworks etc....
I'm using the UI.UserControls.User, UI.UserControls.Address & Wizard API. When I finish the wizard I populate a new UserInfo object with the UI control values and then attempt to create a new DNN user......
Here is the issue - The UserInfo.Profile.FirstName is acting as a read only property.
Dim NexusUser As New DotNetNuke.Entities.Users.UserInfo
NexusUser.PortalID = PortalId
NexusUser.Profile.FirstName = userCtl.FirstName
When I run this code there are no errors but the value of the userControl is not assigned to the UserInfo.Profile.FirstName. I can assign it to the old UserInfo.FirstName but not the the profile properties.
I checked the Register.ascx.vb and they add a new user using the UserInfo.Profile.FirstName method as I have. Register.ascx I'm sure works... What am I missing?
Thanks