Solved

Strange error when adding a new page  in DotNetNuke

Posted on 2012-03-27
4
803 Views
Last Modified: 2012-04-16
I have a DNN5.6.3-website.
 When I try to add a new page to my site I get this strange error:
 
Error: is currently unavailable.
 DotNetNuke.Services.Exceptions.ModuleLoadException: Sequence contains more than one element ---> System.InvalidOperationException: Sequence contains more than one element at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source) at DotNetNuke.Entities.Modules.ModuleController.AddModulePermission(ModuleInfo& objModule, Int32 portalId, String roleName, PermissionInfo permission, String permissionKey) at DotNetNuke.Entities.Modules.ModuleController.LocalizeModuleInternal(ModuleInfo sourceModule) at DotNetNuke.Entities.Modules.ModuleController.LocalizeModule(ModuleInfo sourceModule, Locale locale) at DotNetNuke.Entities.Tabs.TabController.CreateLocalizedCopy(TabInfo originalTab, Locale locale) at DotNetNuke.Entities.Tabs.TabController.CreateLocalizedCopies(TabInfo originalTab) at DotNetNuke.Modules.Admin.Tabs.ManageTabs.SaveTabData(String strAction) at DotNetNuke.Modules.Admin.Tabs.ManageTabs.cmdUpdate_Click(Object Sender, EventArgs e) --- End of inner exception stack trace ---
 
Can somebody help me with this?
 
More information:
 - The site is bilingual, content localization is set on.
 - I only get this error when I add a new page with Culture Type: 'Create Localized Versions of Page'
 - After the error, the new pages are still added in both languages. But they are not localized.
 
Possible solution:
 - Googling my error suggests that the probleem has omething to do with multiple page-naming.
- I deleted the pages that I recently added. But there's no difference. It can't be in the pages that were allready in my website. The problem never occured before.
 
Any advice is appreciated!!
0
Comment
Question by:adiemeer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 500 total points
ID: 37770898

Problem solved. After resetting the CultureCode column on the Tab table, there remained a duplicate key in collection problem which appeared to be connected with module localization. I checked the CultureCode column on the TabModules table and sure enough, it had been set to the culture of the default language for all modules. After setting it correctly (so that it corresponded to the CultureCode of the related Tab), the site appears to be fixed.

See this thread for reference:-
http://www.dotnetnuke.com/Resources/Forums/forumid/77/threadid/425157/scope/posts.aspx
0
 

Author Comment

by:adiemeer
ID: 37771334
Hmm, this looks like something I want to trie. Unfortunately, I don't really know how to. Could you please help me with the steps mentioned? I guess this is SQL-Server-work? I'm not familiar with that...
0
 

Author Comment

by:adiemeer
ID: 37780577
Anyone?
0
 

Author Comment

by:adiemeer
ID: 37794986
Ehmm, BuggyCoder, or anyone else...

Please help!
0

Featured Post

Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
The viewer will learn how to count occurrences of each item in an array.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question