Wrox Programmer Forums
|
BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9
This is the forum to discuss the Wrox book Professional ASP.NET MVC 1.0 by Rob Conery, Scott Hanselman, Phil Haack, Scott Guthrie; ISBN: 978-0-470-38461-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 22nd, 2010, 09:34 AM
Authorized User
 
Join Date: Jul 2010
Posts: 27
Thanks: 2
Thanked 0 Times in 0 Posts
Default Manage Profile Update problem?

Hi

i came across a funny thing and i am not sure it is normal or not.

Basically a registered user can enter the Manage My profile information only once.

For example I create a new user lets say Albert then i click on Manage My profile and fill in the Information. If i logout and login again with Albert when i press Manage My Profile i get a null reference exception here in the Usercontroller class:

Code:
            ProfileInformation profileInformation = new ProfileInformation()
            {
                FirstName = profileBase.GetPropertyValue("PersonalInformation.FirstName").ToString(),
                LastName = profileBase.GetPropertyValue("PersonalInformation.LastName").ToString(),
                BirthDate = (DateTime)profileBase.GetPropertyValue("PersonalInformation.BirthDate"),
                Website = profileBase.GetPropertyValue("PersonalInformation.Website").ToString(),
                Street = profileBase.GetPropertyValue("ContactInformation.Street").ToString(),
                City = profileBase.GetPropertyValue("ContactInformation.City").ToString(),
                State = profileBase.GetPropertyValue("ContactInformation.State").ToString(),
                Zipcode = profileBase.GetPropertyValue("ContactInformation.ZipCode").ToString()
            };
The funny thing is that if I delete the user from the database and create a new user with the same name and different password i still get the same error while when i create a new user with a name that has been never used before i can enter the information in Manage My Profile.

Anyone knows why this happens or why i can only enter information in Manage My Profile only once for a user?

If i test the original website from codeplex online i can change the Manage My Profile information as many times as i like for a user.

Cheers

Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 16 Profile Problem Will BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 April 28th, 2009 04:40 PM
The problem of search speed abot Profile data! mycwcgr ASP.NET 2.0 Professional 0 August 15th, 2008 10:33 PM
Manage. rupen SQL Server 2005 1 October 17th, 2007 11:27 AM
custom membership retrieve profile problem lesstalk ASP.NET 2.0 Professional 0 February 23rd, 2007 10:03 AM
user profile creation problem yasminnnnn BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 6 December 11th, 2006 09:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.