Solved

Strange error when adding a new page  in DotNetNuke

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

"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,…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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…

785 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