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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumPathTooLongException in 3.10.04PathTooLongException in 3.10.04
Previous
 
Next
New Post
12/9/2005 7:46 AM
 
If the user has too many roles assigned, PathTooLongException is thrown when trying to navigate to forum. The source code causing an error is in DNNForum.vb in Menu property:

' Obtain forum menu based on user roles list     
'CP - TEST
If LoggedOnUser Is Nothing Then
    LoggedOnUser.UserID = -1
End If
'END TEST
Dim strKey As String = "ForumMenu." & ModuleID.ToString & "." & LoggedOnUser.PermissionID

If DataCache.GetCache(strKey) Is Nothing Then
    Dim ctlMenu As New DotNetNuke.Modules.Forum.WebControls.ForumMenu(ModuleID)
    DataCache.SetCache(strKey, ctlMenu)
End If

Return CType(DataCache.GetCache(strKey), DotNetNuke.Modules.Forum.WebControls.ForumMenu)

The name of file used for cached data storage includes LoggedOnUser.PermissionID that contains all user role *names*. In my case it is too long since I prefer granular privileges assignment, and DataCache.SetCache was throwing an exception. My hot fix was to disable menu caching. I replaced the entire function code with just

'CP - TEST
If LoggedOnUser Is Nothing Then
    LoggedOnUser.UserID = -1
End If
'END TEST
Return New DotNetNuke.Modules.Forum.WebControls.ForumMenu(ModuleID)

I hope some fix will be applied in further module releases.
 
New Post
12/9/2005 9:24 PM
 
This problem is a caching issue of the core, not actually of this module.  There is a post in these forums about the default settings using some file based caching which is where this problem comes from. 

Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumPathTooLongException in 3.10.04PathTooLongException in 3.10.04


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