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!!