Solved

Strange error when adding a new page  in DotNetNuke

Posted on 2012-03-27
4
770 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
  • 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

867 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now