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 ...Host Settings Error after upgrade to 6.1.4Host Settings Error after upgrade to 6.1.4
Previous
 
Next
New Post
4/2/2012 7:17 PM
 

I have been going through the upgrade steps from 4.9.5 to 6.1.4 and just about alls seems to work except the update said there was a DDRMenu error (won't let me do a repair install).

Everything pretty much seems to be ok except the Host Settings page won't load and gives the error:

Error: Host Settings is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: An item with the same key has already been added. ---> 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.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) at DotNetNuke.Entities.Modules.ModuleControlController.GetModuleControlsByModuleDefinitionID(Int32 moduleDefID) at DotNetNuke.Modules.Admin.Host.HostSettings.BindData() at DotNetNuke.Modules.Admin.Host.HostSettings.OnLoad(EventArgs e) --- End of inner exception stack trace ---

The details in the event/log viewer are:

ModuleId: 327

ModuleDefId: 72

FriendlyName: Host Settings

ModuleControlSource: DesktopModules/Admin/HostSettings/HostSettings.ascx

AssemblyVersion: 6.1.4

PortalID: 0

PortalName: The Accountants Circle

UserID: 6

UserName: Webmaster

ActiveTabID: 16

ActiveTabName: Host Settings

RawURL: /Host/HostSettings/tabid/16/portalid/0/Default.aspx

AbsoluteURL: /Default.aspx

AbsoluteURLReferrer: http://update.accountantscircle.co.uk/Default.aspx?tabid=16&error=The+string+parameter+%27tagPrefix%27+cannot+be+null+or+empty.%0d%0aParameter+name%3a+tagPrefix&content=0

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: 7549dcb2-6e13-42f3-8711-5d18b5fadfb2

InnerException: An item with the same key has already been added.

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method: System.ThrowHelper.ThrowArgumentException

StackTrace:

Message: DotNetNuke.Services.Exceptions.ModuleLoadException: An item with the same key has already been added. ---> 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.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) at DotNetNuke.Entities.Modules.ModuleControlController.GetModuleControlsByModuleDefinitionID(Int32 moduleDefID) at DotNetNuke.Modules.Admin.Host.HostSettings.BindData() at DotNetNuke.Modules.Admin.Host.HostSettings.OnLoad(EventArgs e) --- End of inner exception stack trace ---

Source:

Server Name: a418

and

AssemblyVersion: 6.1.4

PortalID: -1

PortalName:

UserID: -1

UserName:

ActiveTabID: -1

ActiveTabName:

RawURL: /default.aspx

AbsoluteURL: /default.aspx

AbsoluteURLReferrer:

UserAgent:

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: 7474d1eb-989f-4c7e-b4cd-9bad6477d11d

InnerException: Object reference not set to an instance of an object.

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method: DotNetNuke.Security.Membership.AspNetMembershipProvider.GetMembershipUserCallBack

StackTrace:

Message: System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Security.Membership.AspNetMembershipProvider.GetMembershipUserCallBack(CacheItemArgs cacheItemArgs) at DotNetNuke.Common.Utilities.DataCache.GetCachedDataFromRuntimeCache(CacheItemArgs cacheItemArgs, CacheItemExpiredCallback cacheItemExpired)

Source:

Server Name: a418 

Does anyone know what might be wrong here and how it could be fixed?

Thanks

 
New Post
4/3/2012 12:31 PM
 
I had something simular when I was upgrading my site.
I was using a custom skin.

I solved my problem by just switching to the standard skin and containers that ship with dnn.
 
New Post
4/3/2012 5:22 PM
 

Hi Tom

Thanks for the reply.

I've switched to the DarkKnight skin but unfortunately the error with the Host settings still appears as before.

 
New Post
4/4/2012 12:36 AM
 

I've upgraded my live site to 5.6.7 and can't see any problems at all so far.

The next step though, I've tried with test copies of the live site numerous times now with no luck.  Just tried to go to 6.1.3 instead of 6.1.4 but the same error above is happening. 

I am really not sure to look but I have updated every DNN module to the latest possible versions and don't use many other 3rd party modules anymore. It seems there is something wrong, maybe in the database, related to the core DNN.  Other pages seem fine but not the Host Settings and I'm very reluctant to upgrade the live site whilst this is still happening.

 
New Post
4/4/2012 10:06 AM
 

Dave,

I took a look at the code where the first exception is occurring. Examine the database (after the upgrade to 6.1.3 or 6.1.4) table ModuleControls looking in particular for rows that have a null ModuleDefID and the same ControlKey and let me know what you find. I suspect that the ControlKey that is duplicated might be CONTROLPANEL:RibbonBar.

As for the second exception I don't think that is related to the first and since the ActiveTabID is -1 may be occurring when processing a scheduled job rather than when a user hits a particular page.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Host Settings Error after upgrade to 6.1.4Host Settings Error after upgrade to 6.1.4


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