Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0HOW TO: Programmatically Create New UserHOW TO: Programmatically Create New User
Previous
 
Next
New Post
6/7/2007 4:21 PM
 

Good news!
I installed DNN v4.05.03 and I am no longer receiving the exception.

Bad news!
The user create status is returning the UnexpectedError status.  :(


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
6/7/2007 4:31 PM
 

Are you still using the duplicated Membership Provider and stuff that you did trying to work around the error, or are you back to using the standard providers?  I'm glad to hear it isn't throwing the exception anymore, but a little concerned that it is having an UnexpectedError status coming back from the createuser.

I've never actually paid attention to see if mine returned any results other than the Success (oops ) so I have no idea if I get that right now or not.  The real kicker is are the users in the database now with all the information you expected, or is something missing?


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
New Post
6/7/2007 4:41 PM
 

Yeah, that is the kicker...  The DNN user is created fine.  However, the profile settings is where I believe it bombs.  I was initially using the DNN providers after the upgrade. 

I am about to use my copies of those providers right now.  I have just placed some notifications in them to give me status updates so I can nail down where the status changes in the process since I am no longer receiving an exception.  Keep in mind, the exception notifications are the only changes I made to the providers...


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
6/7/2007 5:05 PM
 

Hmmm...  I am thinking that I should not add profile settings...  I was premature in saying that the exception was gone.  When I put my classes back in place, there is indeed still a Foreign Key restraint exception happening in the same place, changing the status to "UnexpectedError" and sending me the exception (from an exception notification routine I have).

What happens that is good is:

  1. The DNN user is created.
  2. The e-mail is created and sent to the new user.

What happens that is bad is:

  1. The UserInfo object is not updated with the new UserID during this process within the providers (the real problem).
  2. The profile properties cannot then be updated without throwing the exception.

What I need to find out is:

  1. Where is the UserInfo object supposed to reassign the UserID property?

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
6/8/2007 11:11 AM
 

hismightiness wrote

Hmmm...  I am thinking that I should not add profile settings...  I was premature in saying that the exception was gone.  When I put my classes back in place, there is indeed still a Foreign Key restraint exception happening in the same place, changing the status to "UnexpectedError" and sending me the exception (from an exception notification routine I have).

What happens that is good is:

  1. The DNN user is created.
  2. The e-mail is created and sent to the new user.

What happens that is bad is:

  1. The UserInfo object is not updated with the new UserID during this process within the providers (the real problem).
  2. The profile properties cannot then be updated without throwing the exception.

What I need to find out is:

  1. Where is the UserInfo object supposed to reassign the UserID property?

Upon investigating this, the DNN core team must know that this is the default behavior.  I think that they do not intend on updating the UserInfo object until the user logs in. 

Have you verified that your profile properties are added using the code you displayed?  I believe that this "exception" is the intended behavior since the exeption is captured when updating a profile, but nothing is done with it.

SELECT

up.[ProfileID],up.[UserID],up.[PropertyDefinitionID],up.[PropertyValue],up.[PropertyText],

up

.[Visibility],up.[LastUpdatedDate]

FROM

[DATABASENAME].[dbo].[UserProfile] up

ORDER

BY up.[UserID] DESC, up.[PropertyDefinitionID]

Is your example occurring upon updating an existing user, a new user, or both?  Do you use the membership provider to do it, or are you doing it with custom code?  (I see in your example where you are assigning the profile information, but not where the UserInfo object comes from, or where it gets updated using the code.)


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0HOW TO: Programmatically Create New UserHOW TO: Programmatically Create New 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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out