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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Can not add userCan not add user
Previous
 
Next
New Post
11/25/2011 9:26 AM
 

Hi, I am using DNN 06.01.01. I can login through host user but I am unable to create a new user. From the Event viewer of DNN i got the following error / exception.

Message: DotNetNuke.Services.Exceptions.ModuleLoadException: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_UserProfile_Users". The conflict occurred in database "SO-Upgrade", table "dbo.Users", column 'UserID'. The statement has been terminated. ---> System.Data.SqlClient.SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_UserProfile_Users". The conflict occurred in database "SO-Upgrade", table "dbo.Users", column 'UserID'. The statement has been terminated. at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Security.Membership.Data.SqlDataProvider.UpdateProfileProperty(Int32 profileId, Int32 userId, Int32 propertyDefinitionID, String propertyValue, Int32 visibility, DateTime lastUpdatedDate) at DotNetNuke.Security.Profile.DNNProfileProvider.UpdateUserProfile(UserInfo user) at DotNetNuke.Security.Profile.DNNProfileProvider.UpdateTimeZoneInfo(UserInfo user, ProfilePropertyDefinitionCollection properties) at DotNetNuke.Security.Profile.DNNProfileProvider.GetUserProfile(UserInfo& user) at DotNetNuke.Entities.Users.UserInfo.get_Profile() at DotNetNuke.Entities.Modules.UserModuleBase.InitialiseUser() at DotNetNuke.Entities.Modules.UserModuleBase.get_User() at DotNetNuke.Modules.Admin.Users.ManageUsers.BindData() at DotNetNuke.Modules.Admin.Users.ManageUsers.OnLoad(EventArgs e) --- End of inner exception stack trace ---



Can some one help ??


Thanks In Advance.

 
New Post
11/25/2011 2:09 PM
 
I would check out what the SO-Upgrade table is for. Sounds like a extension or module is installed with that constraint on it.


Steven Webster
Manager, Community Platform
F5 Networks, DevCentral
 
New Post
11/26/2011 5:36 AM
 
Steven, SO-Upgrade is name of the database, i.e. no 3rd party extension involved.
Imran, it looks like the Database tries to insert userprofile data for users, who don't exist in user table any longer. Since there is no other user table the userID might reside in, I assume the procedure tries inserting a Null value. In this case, there is an issue with your installation, the code doesn't fit database structure, either due to files not replaced during the upgrade or database scripts not being run. Please re-unzip all files from DNN upgrade package (make sure, you unblocked the zip file before!!) and check database upgrade log files inside /providers/dataproviders/sqldataprovider folder.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/26/2011 10:22 AM
 
Actually this error appears when I click on the Register link (When I am not logged in)

AND also

When I am logged in as host/admin user and click the Add new user link on User Accounts.

Any Idea why it is causing throw at this stage.

One important thing is that I can click the Edit user , It allows me to do so.

Thanks
 
New Post
11/27/2011 5:49 AM
 
it is very strange, I haven't seen it before. Please check the database and stored procedures to add user - maybe one of it hasn't properly replaced during upgrade (check upgrade logs inside /providers/dataprooviders/sqldataprovider folder as well!)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Can not add userCan not add 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