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 2: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.  :(


These are my personal opinions and don't necessarily represent the views and opinions of DotNetNuke Corporation.
Will Strohl
Media Module Team Lead, User Groups Team Lead
Sales Engineer, DotNetNuke Corporation

DotNetNuke Blog | Find a DNN User Group | Media Module
Twitter: @WillStrohl LinkedIn: Will Strohl on LinkedIn

 
New Post
6/7/2007 2: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 2: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...


These are my personal opinions and don't necessarily represent the views and opinions of DotNetNuke Corporation.
Will Strohl
Media Module Team Lead, User Groups Team Lead
Sales Engineer, DotNetNuke Corporation

DotNetNuke Blog | Find a DNN User Group | Media Module
Twitter: @WillStrohl LinkedIn: Will Strohl on LinkedIn

 
New Post
6/7/2007 3: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?

These are my personal opinions and don't necessarily represent the views and opinions of DotNetNuke Corporation.
Will Strohl
Media Module Team Lead, User Groups Team Lead
Sales Engineer, DotNetNuke Corporation

DotNetNuke Blog | Find a DNN User Group | Media Module
Twitter: @WillStrohl LinkedIn: Will Strohl on LinkedIn

 
New Post
6/8/2007 9: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.)


These are my personal opinions and don't necessarily represent the views and opinions of DotNetNuke Corporation.
Will Strohl
Media Module Team Lead, User Groups Team Lead
Sales Engineer, DotNetNuke Corporation

DotNetNuke Blog | Find a DNN User Group | Media Module
Twitter: @WillStrohl LinkedIn: Will Strohl on LinkedIn

 
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


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.