Solved

Strange error when adding a new page  in DotNetNuke

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The viewer will learn how to dynamically set the form action using jQuery.
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…

829 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