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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Error An item with the same key has already been addedError An item with the same key has already been added
Previous
 
Next
New Post
6/10/2012 4:10 AM
 
Hi,
I have several different versions of DNN.
Sometimes with no any change in Modules or...  I have this error,
"An item with the same key has already been added"
and when i was copy a dll to bin(restart app) The error is resolved.

I don't know what's error for?
 
New Post
6/10/2012 5:18 AM
 
please check details of the error in DNN event viewer and post it here.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/10/2012 5:22 AM
 
<LogProperty>
        <PropertyName>Method</PropertyName>
        <PropertyValue>System.ThrowHelper.ThrowArgumentException</PropertyValue>
    </LogProperty>
    <LogProperty>
        <PropertyName>StackTrace</PropertyName>
        <PropertyValue />
    </LogProperty>
    <LogProperty>
        <PropertyName>Message</PropertyName>
        <PropertyValue>System.Exception: Unhandled Error:  ---&gt; System.TypeInitializationException: The type initializer for 'DotNetNuke.Entities.Users.UserController' threw an exception. ---&gt; System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; 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 System.Collections.ObjectModel.KeyedCollection`2.AddKey(TKey key, TItem item)     at System.Collections.ObjectModel.KeyedCollection`2.InsertItem(Int32 index, TItem item)     at System.Collections.ObjectModel.Collection`1.Add(T item)     at DotNetNuke.ComponentModel.SimpleContainer.RegisterComponentInstance(String name, Type contractType, Object instance)     at DotNetNuke.ComponentModel.AbstractContainer.RegisterComponentInstance[TContract](Object instance)     at DotNetNuke.ComponentModel.ComponentFactory.RegisterComponentInstance[TContract](Object instance)     at DotNetNuke.Security.Membership.AspNetMembershipProvider..ctor()     --- End of inner exception stack trace ---     at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean&amp; canBeCached, RuntimeMethodHandle&amp; ctor, Boolean&amp; bNeedSecurityCheck)     at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)     at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)     at System.Activator.CreateInstance(Type type, Boolean nonPublic)     at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)     at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)     at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)     at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture)     at DotNetNuke.Framework.Reflection.CreateInstance(Type Type)     at DotNetNuke.ComponentModel.SingletonComponentBuilder.CreateInstance()     at DotNetNuke.ComponentModel.SingletonComponentBuilder.BuildComponent()     at DotNetNuke.ComponentModel.SimpleContainer.GetComponent(IComponentBuilder builder)     at DotNetNuke.ComponentModel.SimpleContainer.GetComponent(Type contractType)     at DotNetNuke.ComponentModel.AbstractContainer.GetComponent[TContract]()     at DotNetNuke.ComponentModel.ComponentFactory.GetComponent[TContract]()     at DotNetNuke.Security.Membership.MembershipProvider.Instance()     at DotNetNuke.Entities.Users.UserController..cctor()     --- End of inner exception stack trace ---     at DotNetNuke.Entities.Users.UserController.GetUserCountByPortal(Int32 portalId)     at DotNetNuke.Entities.Portals.PortalInfo.Fill(IDataReader dr)     at DotNetNuke.Common.Utilities.CBO.FillObjectFromReader(Object objObject, IDataReader dr)     at DotNetNuke.Common.Utilities.CBO.CreateObjectFromReader(Type objType, IDataReader dr, Boolean closeReader)     at DotNetNuke.Common.Utilities.CBO.FillListFromReader(Type objType, IDataReader dr, IList objList, Boolean closeReader)     at DotNetNuke.Common.Utilities.CBO.FillCollection(IDataReader dr, Type objType)     at DotNetNuke.Entities.Portals.PortalController.GetPortals()     at DotNetNuke.Common.Initialize.CacheMappedDirectory()     at DotNetNuke.Common.Initialize.InitializeApp(HttpApplication app)     at DotNetNuke.Common.Initialize.Init(HttpApplication app)     at DotNetNuke.HttpModules.RequestFilter.RequestFilterModule.FilterRequest(Object sender, EventArgs e)     at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously)     --- End of inner exception stack trace ---</PropertyValue>
    </LogProperty>

 
New Post
6/10/2012 5:41 AM
 
there seems to be a problem with registering components, something seems to happen twice. do you have duplicate membership provider definition in Host > Extensions?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/10/2012 6:02 AM
 

No,

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Error An item with the same key has already been addedError An item with the same key has already been added


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