Error Creating Profile Definitions Dotnetnuke
Marketing Community Engagement Ideas Answers Discussions Groups Wikis Events Mobile ReadyEvoq Intranet Governance Employee Portal Collaboration Gamification User Profiles Personalization Document Management Analytics IntegrationsEvoq: CMS FeaturesEvoq OnDemandProduct DemosCompare ProductsCompare DNN Platform to Evoq Solutions Customer EngagementMarketing & ECommerceCustomer SupportProduct DevelopmentMember EngagementEmployee IntranetOur Customers Learn More Test DrivesSchedule A DemoWebinarsWhite PapersProduct ManualsRequest PricingData SheetsCase StudiesVideosEvoq Preferred Products Content Management Ecommerce Forms Identity Management and Authentication Site Management Social Themes Partners DNN Partners Partner Directory Become a DNN Partner Community Participate Community Exchange Community Voice Community Showcase Community Forums Working Groups Members Module ContestLearn Project History Documentation Center Community Blog Video Library Wiki Development Online Help RoadmapConnect DNN MVP Community Leaderboard Community Newsletters Community Events Community HangoutDownload DNN Forge Language Packs Manuals Nightly BuildsSecurity Policies Security Center Blog About Leadership Management InvestorsNews Press Releases News Coverage Press KitCareersContact DNN Download DNN Platform Whitepapers Manuals Support Store DNN Modules DNN Themes Store Blog Evoq Preferred Services Login REGISTERBecome a DNNizen > Submit DNN Products Evoq Content Overview Content Creation Workflow Asset Management Mobile Responsive Personalization Content Analytics SEO Integrations Security Website Performance Evoq Engage Overview Community Management Gamification Advocate Marketing Community Engagement Mobile Ready Evoq Intranet Governance Employee Portal Collaboration Gamification User Profiles Personalization Document Management Analytics Integrations Evoq: CMS Features Evoq OnDemand Product Demos Compare Products Compare DNN Platform to Evoq Solutions Customer Engagement Marketing & ECommerce Customer Support Product Development Member Engagement Employee Intranet Our Customers Learn More Test Drives Schedule A Demo Webinars White Papers Product Manuals Request Pricing Data Sheets Case Studies Videos Evoq Preferred Products Content Management Ecommerce Forms Identity Management and Authentication Site Management Social Themes Partners DNN Partners Partner Directory Become a DNN Partner Community Participate Community Exchange Community Voice C
Catalook Friendly Url Provider News Articles Friendly Url Provider Tagger Contact Blog Licensing Support Products » Support Forums Search Support Forums SearchHome 12345 HomeDotNetNuke Modu...Url MasterCan't add new portal after upgrading to dnn 6.1.3 Previous Next 2/27/2012 2:49 PM John Joined: 3/10/2008 Posts: 81 Can't add new portal after upgrading to dnn 6.1.3 Bruce, grasping at straws, can this have anything to do with URL Master? Error creating Profile Definitions No matter what I do, I get that error - choosing domain.com or IP, choosing anyone of the http://www.dnnsoftware.com/forums/threadid/140000/scope/posts/error-creating-profile-definitions-even-after-updating-schema 4 options for template, use current user or enter new ... It gives that error but the portal is there without site alias, users or pages. Can't hit edit button beside site. Looked at DB, there appear to be some entries in portals (but no administerroleid) or any entries at all in portalalias table. How do I fix this Profile Definitions http://www.ifinity.com.au/Products/Support_Forums/forumid/8/threadid/7977/scope/posts error? The very first time I tried to add new site, event manager shows: InnerException: An item with the same key has already been added. What key ??? Message: System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) at DotNetNuke.Common.Lists.ListController.<>c__DisplayClass1.
here for a quick overview of the site Help Center Detailed answers to any questions you http://stackoverflow.com/questions/10142009/why-am-i-getting-a-nullreferenceexception-when-creating-a-new-dotnetnuke-user-vi might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or http://stackoverflow.com/questions/14951010/create-profileproperty-through-code-in-dnn posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of error creating 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Why am I getting a nullReferenceException when creating a new DotNetNuke user via c#? up vote 3 down vote favorite I have the following code in my DotNetNuke module to register a new user: protected static error creating profile int RegisterNewDnnAccount(string firstName, string lastName, string email, string password) { // Create user var user = new UserInfo(); user.FirstName = firstName; user.LastName = lastName; user.Email = email; user.DisplayName = string.Concat(firstName, " ", lastName); user.Username = email; user.IsSuperUser = false; user.Profile.FirstName = firstName; user.Profile.LastName = lastName; user.Profile.PreferredTimeZone = TimeZoneInfo.Local; user.Profile.PreferredLocale = "en-US"; user.Profile.Telephone = string.Empty; user.Profile.Cell = string.Empty; user.Profile.PostalCode = string.Empty; user.Profile.City = string.Empty; user.Profile.Street = string.Empty; user.Profile.Region = string.Empty; // Set up membership var membership = new UserMembership(user); membership.Approved = true; membership.CreatedDate = DateTime.Now; membership.Password = password; membership.IsOnLine = false; user.Membership = membership; // Register the account var status = UserController.CreateUser(ref user); switch (status) { case UserCreateStatus.Success: return user.UserID; case UserCreateStatus.InvalidPassword: throw new InvalidOperationException("Failed to create user account: invalid password"); case UserCreateStatus.InvalidEmail: throw new InvalidOperationException("Failed to create user account: Invalid email"); case UserCreateStatus.DuplicateEmail: throw new InvalidOperationException("A user already exists with this email address"); case UserCreateStatus.UserAlreadyRegistered: throw new InvalidOperationException("This user is already registered"); default: throw new InvalidOperationException("user account creation failed for an
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Create ProfileProperty Through Code in DNN up vote 3 down vote favorite 1 How to Create Profile Property Through Code in DNN (DotNetNuke)? I tried this code: DotNetNuke.Entities.Profile.ProfilePropertyDefinition def = DotNetNuke.Entities.Profile.ProfileController.GetPropertyDefinitionByName(this.PortalId, "Level"); if (def != null) { def.DataType = 10; def.Length = 40; def.PropertyValue = "Level"; def.PropertyName = "Level"; oUser.Profile.ProfileProperties.Add(def); } oUser.Profile.SetProfileProperty("Level", ddlLevel.SelectedItem.Text.ToString().Trim()); DotNetNuke.Entities.Profile.ProfileController.UpdateUserProfile(oUser, oUser.Profile.ProfileProperties); But it won't work, please help me with suitable solution. dotnetnuke user-profile share|improve this question edited Feb 19 '13 at 10:26 Ehsan 684819 asked Feb 19 '13 at 6:12 sourabh_bansal 385 add a comment| 1 Answer 1 active oldest votes up vote 6 down vote accepted try out this code for adding Profile Property: if (DotNetNuke.Entities.Profile.ProfileController.GetPropertyDefinitionByName(this.PortalId, "Level") == null) { DotNetNuke.Entities.Profile.ProfileController.AddPropertyDefinition( new DotNetNuke.Entities.Profile.ProfilePropertyDefinition(this.PortalId) { PropertyName = "Name", DataType = 10, ... }); } share|improve this answer answered Feb 19 '13 at 10:44 Ehsan 684819 My I ask , Does data type has always same ID for same type, Or We should find data type by other way. –adopilot Feb 22 '13 at 22:12 I'm not sure, but in DNN6 and DNN7 they are same. You can find them or many ot