Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Server Error in '/' Application View modes: 
User avatar
Member
Member
design-tymado - 11/19/2010 5:55:40 PM
   
Server Error in '/' Application
I'm on v5.0. I just imported a package from another developer. Everything seemed to work great, until I tried to insert a link to another content item. In the Insert link window, content tab, I received the following error:
Cannot find table 0.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IndexOutOfRangeException: Cannot find table 0.

Source Error:

Line 1662: // Get latest files
Line 1663: columns = DocumentHelper.GETDOCUMENTS_REQUIRED_COLUMNS + ", " + columns;
Line 1664: nodes = DocumentHelper.GetDocuments(siteName, parentAliasPath.TrimEnd('/') + "/%", TreeProvider.ALL_CULTURES, true, null, where, "NodeOrder", 1, false, topN, columns, tree);
Line 1665: }
Line 1666:


Source File: d:\websites\dev.zynxhealth.com\CMSModules\Content\Controls\Dialogs\LinkMediaSelector\LinkMediaSelector.ascx.cs Line: 1664

Stack Trace:

[IndexOutOfRangeException: Cannot find table 0.]
System.Data.DataTableCollection.get_Item(Int32 index) +92
CMS.WorkflowEngine.VersionManager.ApplyDocumentVersionData(DataSet ds) +326
CMS.WorkflowEngine.DocumentHelper.ApplyVersionData(DataSet ds, Boolean coupledData, TreeProvider tree) +476
CMS.WorkflowEngine.DocumentHelper.GetDocuments(String siteName, String aliasPath, String cultureCode, Boolean combineWithDefaultCulture, String classNames, String where, String orderBy, Int32 maxRelativeLevel, Boolean selectOnlyPublished, Int32 topN, String columns, TreeProvider tree) +178
CMSModules_Content_Controls_Dialogs_LinkMediaSelector_LinkMediaSelector.GetNodes(String searchText, TreeProvider tree, String parentAliasPath, String siteName) in d:\websites\dev.zynxhealth.com\CMSModules\Content\Controls\Dialogs\LinkMediaSelector\LinkMediaSelector.ascx.cs:1664
CMSModules_Content_Controls_Dialogs_LinkMediaSelector_LinkMediaSelector.LoadContentDataSource(String searchText) in d:\websites\dev.zynxhealth.com\CMSModules\Content\Controls\Dialogs\LinkMediaSelector\LinkMediaSelector.ascx.cs:1698
CMSModules_Content_Controls_Dialogs_LinkMediaSelector_LinkMediaSelector.LoadDataSource() in d:\websites\dev.zynxhealth.com\CMSModules\Content\Controls\Dialogs\LinkMediaSelector\LinkMediaSelector.ascx.cs:1298
CMSModules_Content_Controls_Dialogs_LinkMediaSelector_LinkMediaSelector.HandleFolderAction(String argument, Boolean reloadTree, Boolean callSelection) in d:\websites\dev.zynxhealth.com\CMSModules\Content\Controls\Dialogs\LinkMediaSelector\LinkMediaSelector.ascx.cs:1841
CMSModules_Content_Controls_Dialogs_LinkMediaSelector_LinkMediaSelector.EnsureLoadedData() in d:\websites\dev.zynxhealth.com\CMSModules\Content\Controls\Dialogs\LinkMediaSelector\LinkMediaSelector.ascx.cs:927
CMSModules_Content_Controls_Dialogs_LinkMediaSelector_LinkMediaSelector.Page_Load(Object sender, EventArgs e) in d:\websites\dev.zynxhealth.com\CMSModules\Content\Controls\Dialogs\LinkMediaSelector\LinkMediaSelector.ascx.cs:500
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
CMS.ExtendedControls.AbstractUserControl.OnLoad(EventArgs e) +47
CMS.UIControls.CMSUserControl.OnLoad(EventArgs e) +73
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Any ideas what could have gone wrong?

Thanks in advance.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 11/22/2010 3:04:22 AM
   
RE:Server Error in '/' Application
Hello,

Could you please confirm that the package you've imported is the same version as the Kentico installation?
If yes, could you please apply the latest hotfix for the 5.0 version and check, if it helps?

Best regards,
Boris Pocatko