Solved

Strange error when adding a new page  in DotNetNuke

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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…

705 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