Hi Robert,
I'm having trouble with the latest UserManager 4.08.04 release. If I click on an icon to view any user's profile details, I get the exception pasted below.
I'm not sure if it was doing this in an earlier release because I haven't clicked on the icon for a while.
It happens from any account - I've tried it several times to see if I could pin it down further.
Any advice is appreciated
Rob
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider ExceptionGUID: 0f367f77-e7b5-43f7-a333-3681893aa8e8 InnerException: Object reference not set to an instance of an object. FileName: FileLineNumber: 0 FileColumnNumber: 0 Method: DotNetNuke.Security.PortalSecurity.HasNecessaryPermission StackTrace: Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Security.PortalSecurity.HasNecessaryPermission(SecurityAccessLevel AccessLevel, PortalSettings PortalSettings, ModuleInfo ModuleConfiguration, UserInfo User) at DotNetNuke.Security.PortalSecurity.HasNecessaryPermission(SecurityAccessLevel AccessLevel, PortalSettings PortalSettings, ModuleInfo ModuleConfiguration) at WorkControl.DNN.Modules.UserManager.Utility.HasEditPermissions(ModuleInfo ModuleConfiguration) at WorkControl.DNN.Modules.UserManager.Profile.DataBind() at WorkControl.DNN.Modules.UserManager.ViewProfile.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
Rob,
Thanks for reporting the bug. I am working on the fix.
Robert.
New version 04.08.06 contains the fix. Check out the download page.
Brilliant! You're the best!
One funny thing I've noticed in relation to this "view profile" icon..
I don't know exactly what the intended function of the "Show all profile data" option in the module settings is for, but I think it is meant to restrict the module to display or not display only the fields that have been set as visible in the portal profile settings.
If that is true, then there is something wrong with it, because when I view a user's profile by clicking on that icon, it always shows all profile fields.
The search dropdown also always shows all fields.
Is this as intended?
DNN Core provides option for end user to specify profile fields to be visible/not visible to login user or admin. The "Show all profile data", if checked, will override user preference and display all fields on the view profile screen. This feature is typically used in the intranet environment where the UserManager is used as contact list and seeing full profile is desired and not violating personal data protection.