Learn More





Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...problem trying to update the data of a userproblem trying to update the data of a user
New Post
6/13/2013 6:10 PM
good night
I have a problem trying to update the data of a user.

The error I get is as follows:
Object reference not set to an instance of an object.
    in DotNetNuke.Security.Membership.AspNetMembershipProvider.UpdateUserMembership (UserInfo user)
    in DotNetNuke.Security.Membership.AspNetMembershipProvider.UpdateUser (UserInfo user)
    in DotNetNuke.Entities.Users.UserController.UpdateUser (Int32 PortalID, UserInfo user, Boolean loggedAction)
    in DotNetNuke.Entities.Users.UserController.UpdateUser (Int32 PortalID, UserInfo user)
    in classCrearUsuarioDnn.UpdateUser (idPortal Int32, Int32 userId) in c: \ inetpub \ wwwroot \ dnn_625 \ Website \ App_Code \ classCrearUsuarioDnn.vb: line 166
    in Magallanes.Corredores.AgregarEjecutivo.btnGuardar_Click (Object sender, EventArgs e) in 67

The code where I get the error is:
         ObjUsers Dim As New DotNetNuke.Entities.Users.UserController
         Dim objUser As New DotNetNuke.Entities.Users.UserInfo

         ObjUser = objUsers.GetUser (idPortal, userid)

         ObjUser.FirstName = FirstName
         ObjUser.LastName = LastName
         ObjUser.Email = EMail
         ObjUser.DisplayName = DisplayName

             DotNetNuke.Entities.Users.UserController.UpdateUser (idPortal, objUser)
New Post
6/16/2013 5:04 AM
most likely, there is an issue within the data of an user or one of the DNN upgrades did not perform correctly (check out log files in /providers/dataproviders/sqldataprovider folder).

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group   European Network of DotNetNuke Professionals

Speed up your DNN Websites with TurboDNN
New Post
6/17/2013 12:16 PM

Thanks for responding.
Download the latest version from the website (not an upgrade).

What may be happening that the code does not work?
New Post
6/17/2013 12:47 PM

When I try to upgrade from dnn user I have problems, I get the following error: This website requires a unique email address for each user. The email address you entered is already in use. But you do not have problems with e fact that e is unique, then it is because I get this error.
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...problem trying to update the data of a userproblem trying to update the data of a user

These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
Try Evoq
For Free
Start Free Trial
a Demo
See Evoq Live
Need More Information?