在我们的生产环境中,用户无法注册。
他们收到:An error has occurred. Error: User Registration is currently unavailable.
堆栈跟踪是:
DotNetNuke.Services.Exceptions.ModuleLoadException:未将对象引用设置为对象的实例。 ---> System.NullReferenceException:未将对象引用设置为对象的实例。 DotNetNuke.Entities.Unt.Antities.PetileAccess.GetProperty(String strPropertyName,String strFormat)中的DotNetNuke.Entities.Users.Users.ProfileApert.GetRichValue(ProfilePropertyDefinition prop,String strFormat,CultureInfo formatProvider)中的DotNetNuke.Entities.Users.ProfilePropertyAccess.DisplayDataType(ProfilePropertyDefinition定义) ,DotNetNuke的DotNetNuke.Services.Tokens.BaseTokenReplace.ReplaceTokens(String strSourceText)中的DotNetNuke.Services.Tokens.BaseCustomTokenReplace.replacedTokenValue(String strObjectName,String strPropertyName,String strFormat),CultureInfo formatProvider,UserInfo AccessingUser,Scope currentScope,Boolean& PropertyNotFound) .Services.Localization.Localization.GetSystemMessage(String strLanguage,PortalSettings objPortal,String MessageName,UserInfo objUser,String ResourceFile,ArrayList CustomArray,IDictionary CustomDictionary,String CustomCaption,Int32 AccessingUserID),位于DotNetNuke.Services.Mail.Mail.SendMail(UserInfo用户,MessageNet msgType,PortalSettings设置)DotNetNuke.Entities.Modules.UserModuleBase.CompleteUserCreation(UserCreateStatus createStatus,UserInfo newUser,Boolean notify,Boolean register)at DotNetNuke.Modules.Admin.Users.ManageUsers.UserCreateCompleted(Object sender,UserCreatedEventArgs e)
我怀疑缺少个人资料属性定义。我想知道如何解决这个错误?
答案 0 :(得分:1)
事实证明,我的ProfilePropertyDefinition表DataType列值与Lists表中的EntryID值不匹配。
select * from profilePropertyDefinition
与
相比select * from Lists
where Listname = 'DataType'
order by EntryID
我想通过
来解决这个问题