Look at this thread:
http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/mid/2108/forumid/92/threadid/36495/scope/posts/Default.aspx
Main point in the thread is that I export a portal with blog installed in it. When I try to create a new portal with the exported template I get this error:
DotNetNuke.Services.Exceptions.ModuleLoadException: Item has already been added. Key in dictionary: "820" Key being added: "820" ---> System.ArgumentException: Item has already been added. Key in dictionary: "820" Key being added: "820" at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) at System.Collections.Hashtable.Add(Object key, Object value) at DotNetNuke.Entities.Portals.PortalController.ParsePanes(XmlNode nodePanes, Int32 PortalId, Int32 TabId, PortalTemplateModuleAction mergeTabs, Hashtable hModules) in c:\inetpub\wwwroot\DNN\components\Portal\PortalController.vb:line 1381 at DotNetNuke.Entities.Portals.PortalController.ParseTab(XmlNode nodeTab, Int32 PortalId, Boolean IsAdminTemplate, PortalTemplateModuleAction mergeTabs, Hashtable& hModules, Hashtable& hTabs, Boolean IsNewPortal) in c:\inetpub\wwwroot\DNN\components\Portal\PortalController.vb:line 1183 at DotNetNuke.Entities.Portals.PortalController.ParseTabs(XmlNode nodeTabs, Int32 PortalId, Boolean IsAdminTemplate, PortalTemplateModuleAction mergeTabs, Boolean IsNewPortal) in c:\inetpub\wwwroot\DNN\components\Portal\PortalController.vb:line 1041 at DotNetNuke.Entities.Portals.PortalController.ParseTemplate(Int32 PortalId, String TemplatePath, String TemplateFile, Int32 AdministratorId, PortalTemplateModuleAction mergeTabs, Boolean IsNewPortal) in c:\inetpub\wwwroot\DNN\components\Portal\PortalController.vb:line 568 at DotNetNuke.Entities.Portals.PortalController.CreatePortal(String PortalName, String FirstName, String LastName, String Username, String Password, String Email, String Description, String KeyWords, String TemplatePath, String TemplateFile, String HomeDirectory, String PortalAlias, String ServerPath, String ChildPath, Boolean IsChildPortal) in c:\inetpub\wwwroot\DNN\components\Portal\PortalController.vb:line 172 at DotNetNuke.Modules.Admin.PortalManagement.Signup.cmdUpdate_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\DNN\admin\Portal\Signup.ascx.vb:line 286 --- End of inner exception stack trace ---
Where 820 is the module id of Blogs. If I remove blogs from the portal then it can be imported successfully. This is line 1381 in PortalController.vb which is throwing exception: hModules.Add(templateModuleID, intModuleId)
It is due to some repeating entries in exported template file. The reason for this repeation is that five rows in table ModuleDefinitions are referring to 1 row in DesktopModules.
Schelian has said that this is not a module specific issue. So coud anyone please tell me why is this happening? Is there anything bad I have done which is causing this issue. How can I fix this.