Hello,
I'm working on a DNN 6.2.5 site, and have a problem with the ViewProfile module. It works fine when logged in as host, but when logged in as a non-privileged user, and exception is being thrown visible in the log, and the profile area is left blank, but the Edit Profile button is visible.
Interestingly if the URL of the page is re-engineered to inspect another profile, for example the host account profile, their profile is displayed (with private fields masked out with stars.)
I'm guessing I have unconventional setup for the user profile that might be causing the problem. I have removed most of the default profile fields, and they are all set to Visibility: Admin Only (but they should still be visible to the owner of the profile, and should not cause an exception!).
Here is the Error/Exception (I'll included the symbol files to make the error more useful),
AssemblyVersion: 6.2.5
PortalID: 0
UserID: 2
UserName: dd
ActiveTabID: 57
ActiveTabName: User Profile
RawURL: /UserProfile.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: https://[removed_url]/UserProfile/tabid/57/ctl/Profile/userId/2/pageno/1/Default.aspx
UserAgent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 0233b64f-2f0e-4517-bedf-372c5b6b08a5
InnerException: Unhandled Error Adding Module to ContentPane
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Threading.Thread.AbortInternal
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to ContentPane ---> System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.End() at DotNetNuke.UI.Modules.ProfileModuleUserControlBase.OnInit(EventArgs e) in c:\TeamCity\buildAgent\work\62Maintenance\Increment_Compile\Community\Library\UI\Modules\ProfileModuleUserControlBase.cs:line 109 at DotNetNuke.Modules.Admin.Users.ViewProfile.OnInit(EventArgs e) in c:\[removed_path]\DesktopModules\Admin\ViewProfile\ViewProfile.ascx.cs:line 79 at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at DotNetNuke.UI.Modules.ModuleHost.InjectModuleContent(Control content) in c:\TeamCity\buildAgent\work\62Maintenance\Increment_Compile\Community\Library\UI\Modules\ModuleHost.cs:line 188 at System.Web.UI.Control.EnsureChildControls() at DotNetNuke.UI.Containers.Container.get_ModuleControl() in c:\TeamCity\buildAgent\work\62Maintenance\Increment_Compile\Community\Library\UI\Containers\Container.cs:line 147 at DotNetNuke.UI.Containers.Container.ProcessModule() in c:\TeamCity\buildAgent\work\62Maintenance\Increment_Compile\Community\Library\UI\Containers\Container.cs:line 424 at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo module) in c:\TeamCity\buildAgent\work\62Maintenance\Increment_Compile\Community\Library\UI\Skins\Pane.cs:line 540 --- End of inner exception stack trace --- at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo module) in c:\TeamCity\buildAgent\work\62Maintenance\Increment_Compile\Community\Library\UI\Skins\Pane.cs:line 554 at DotNetNuke.UI.Skins.Skin.InjectModule(Pane pane, ModuleInfo module) in c:\TeamCity\buildAgent\work\62Maintenance\Increment_Compile\Community\Library\UI\Skins\Skin.cs:line 918
I have the following fields in the Profile Settings (All admin only, required, and visible):
FirstName
LastName
CompanyName
Country
PreferredTimeZone
PreferredLocale
Does anyone have any suggestions or solutions on debugging the problem further, or fixing it?
Best regards,
David