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.0import Users into DB, pls help!import Users into DB, pls help!
Previous
 
Next
New Post
3/15/2006 1:35 AM
 

Hi there, we have a lot of users' login/password info from another application now trying to migrate to our DNN application. with all the necessary info & settings (userid, password, passwordformat set to clear, etc.), we could insert those users into the DNN application. the way how we do that is by inserting rows in the following 7 tables in such order:
aspnet_Users, aspnet_Profile, aspnet_Membership,aspnet_UsersInRoles,Users,UserRoles,UserPortals

all fields were nicely formatted and filled in except aspnet_Profile.PropertyValuesBinary which is an image field and we can't figure out how and what to fill in..

 the user could actually login. HOWEVER, those 'implanted' users cannot do anything like regular registered user and when login as host to view Admin -> User account fcn, the screen throws the following errors:


Error: User Accounts is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Data is Null. This method or property cannot be called on Null values. ---> System.Data.SqlTypes.SqlNullValueException: Data is Null. This method or property cannot be called on Null values. at System.Data.SqlTypes.SqlBinary.get_Value() at System.Data.SqlClient.SqlDataReader.GetBytesInternal(Int32 i, Int64 dataIndex, Byte[] buffer, Int32 bufferIndex, Int32 length) at System.Data.SqlClient.SqlDataReader.GetBytes(Int32 i, Int64 dataIndex, Byte[] buffer, Int32 bufferIndex, Int32 length) at System.Web.Profile.SqlProfileProvider.GetPropertyValuesFromDatabase(String userName, SettingsPropertyValueCollection svc) at System.Web.Profile.SqlProfileProvider.GetPropertyValues(SettingsContext sc, SettingsPropertyCollection properties) at System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider) at System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName) at System.Configuration.SettingsBase.get_Item(String propertyName) at System.Web.Profile.ProfileBase.GetInternal(String propertyName) at System.Web.Profile.ProfileBase.get_Item(String propertyName) at DotNetNuke.Entities.Users.UserController.FillUserProfile(UserInfo objUserInfo) at DotNetNuke.Entities.Users.UserInfo.get_Profile() at DotNetNuke.Entities.Users.UserInfo.get_FirstName() at DotNetNuke.Entities.Users.UserController.FillUserInfo(IDataReader dr, Int32 PortalId) at DotNetNuke.Entities.Users.UserController.GetUserByUsername(Int32 PortalID, String Username, Boolean SynchronizeUsers) at DotNetNuke.Entities.Users.UserController.SynchronizeUsers(Int32 PortalID) at DotNetNuke.Modules.Admin.Users.UserAccounts.ConvertMembershipToUserInfo(Int32 PortalID, MembershipUserCollection colMembers) in E:\Dev_on_Plato\DNN\Admin\Users\Users.ascx.vb:line 186 at DotNetNuke.Modules.Admin.Users.UserAccounts.BindData(String SearchText, String SearchField) in E:\Dev_on_Plato\DNN\Admin\Users\Users.ascx.vb:line 151 at DotNetNuke.Modules.Admin.Users.UserAccounts.Page_Load(Object sender, EventArgs e) in E:\Dev_on_Plato\DNN\Admin\Users\Users.ascx.vb:line 368 --- End of inner exception stack trace ---

what went wrong??? please help!!

 
New Post
3/15/2006 11:37 AM
 
I've checked the aspnet_Profile table in my database and the PropertyValuesBinary does not allow nulls. The low level work with the DB is allways very difficult.
  I suggest you to look at the admin/Users/manageusers.ascx.vb the cmdUpdate_Click event handler. There is a block of code doing the work to register a user (lines 327-372 in DNN4.02). I suppose you can serialize your old DB as XML and write a custom module using similar code to register the users like the DotNetNuke itself does instead of working with the aspnet memship tables.

  Best Regards

Best regards, Evgeny
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0import Users into DB, pls help!import Users into DB, pls help!


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