Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

General Exception
Last Post 06/01/2009 10:25 PM by Peter Donker. 3 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Rob Bates
New Member
New Member
Posts:16


--
05/26/2009 10:50 PM

Hi Peter,

Maybe you can point me in the right direction...  I'm getting this error when trying to add a new folder item to a DMX Repository.  It is a general exeception so I'm not sure if it is directly related to DMX.  The funny thing is that the folder does get created and eventually shows on the folder list but not until later, usually after a page refresh or logging out then back in again.

Any ideas?  Thanks in advance.

ActiveTabID: 88
ActiveTabName: Global Consulting
RawURL: /Community/GlobalConsulting/tabid/88/ctl/Module/ModuleId/440/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 3f064b3c-fab8-4d0b-9d9d-9b36b9c78d08
InnerException: An item with the same key has already been added.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.ThrowHelper.ThrowArgumentException
StackTrace:
Message: System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at DotNetNuke.Services.FileSystem.FolderController.FillFolderInfoDictionary(IDataReader dr)
 

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
05/27/2009 4:37 PM
Hi Rob,

1. What versions of DMX and DNN are you using?
2. From the error it appears the error occurs when you're looking at the module settings screen. Can you elaborate?
3. The error happens in the DNN file system logic. This is not used by DMX. Can you tell me how you're trying to add a folder?

Peter
Rob Bates
New Member
New Member
Posts:16


--
05/28/2009 5:30 AM

I google'd a lot on this and discovered corruption (bad entries) in the dnn files and folders tables.  After purging and re-syncronizing the DNN file manager the exception error went away (and after updating the folder permissions table).

But....  the reason I was looking into this hasn't gone away.  When a user with view, edit, and add permissions adds a new folder or file to the DMX repository the new folder does not allow the user to add items to the folder; the right click or folder menu does not show the "New Item" option, or any option that would allow changes to the folder.  After logging out of DNN and/or after waiting for some time (maybe 30+ minutes) the menu items appear.

My next test in the morning will be to observe the DMX_EntryPermissions table to make sure the correct permissions are added, but since after waiting some time the user can access the "New Item" menu option, the permissions are probably entered.

I'm running DNN 4.08.04 and DMX 5.00.02.  I was going to upgrade to DMX 5.00.05 to see if that made a difference.  Also, I am running ASP.NET 2.0.50727 (I was thinking it might be an ajax problem since a screen refresh sometimes works).

Might there be an indexing problem; given it take some time to retrieve the correct permissions?

Thanks again,

Rob

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
06/01/2009 10:25 PM
Hi Rob,

I have to admit I've not seen this before. Permissions are inherited by default and I find it hard to believe the permissions are not set correctly. You should be able to verify this in the details panel of the file, by the way. The context menu not showing items correctly baffles me.

Peter
You are not authorized to post a reply.