ASPX templates
Version 3.x > ASPX templates > Error on page tab View modes: 
User avatar
Member
Member
InterfaceServiceDesk@interfaceglobal.com - 3/23/2009 1:10:10 PM
   
Error on page tab

I am trying to create a press release. I seem to be able to create the posting. However, after I create the posting and try to view the "page tab", I see the error below. Has anyone seen this behavior before?


Server Error in '/' Application.
--------------------------------------------------------------------------------

DataTableReader Cannot be created. There is no DataTable in DataSet.
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.ArgumentException: DataTableReader Cannot be created. There is no DataTable in DataSet.

Source Error:


Line 761:
Line 762: DataSet temp = TreeHelper.SelectNodes(System.String.Concat(strNodeAliasPath, "%"), false, "CMS.PressRelease", "", "PressReleaseDate DESC");
Line 763: DataTableReader reader = temp.CreateDataReader();
Line 764:
Line 765: char[] chrSpace = { ' ' };


Source File: d:\Sites\www_interfaceglobal_com\CMSWebParts\Viewers\cmsrepeater-interface-pr.ascx.cs Line: 763

Stack Trace:


[ArgumentException: DataTableReader Cannot be created. There is no DataTable in DataSet.]
System.Data.DataSet.CreateDataReader() +1715539
CMSWebParts_Viewers_cmsrepeater_interface_pr.SetupControl() in d:\Sites\www_interfaceglobal_com\CMSWebParts\Viewers\cmsrepeater-interface-pr.ascx.cs:763
CMSWebParts_Viewers_cmsrepeater_interface_pr.OnContentLoaded() in d:\Sites\www_interfaceglobal_com\CMSWebParts\Viewers\cmsrepeater-interface-pr.ascx.cs:709
CMS.PortalControls.CMSWebPartZone.OnContentLoaded() +271
CMS.PortalControls.CMSAbstractLayout.OnContentLoaded() +117
CMS.PortalControls.CMSAbstractLayout.LoadContent(PageInfo pageInfo, Boolean reloadData) +313
CMS.PortalControls.CMSPagePlaceholder.LoadContent(PageInfo pageInfo, Boolean reloadData) +1049
CMS.PortalControls.CMSPagePlaceholder.LoadContent(PageInfo pageInfo, Boolean reloadData) +1189
CMS.PortalControls.CMSPortalManager.LoadContent(Boolean reloadData) +909
CMS.PortalControls.CMSPortalManager.CMSPortalManager_Init(Object sender, EventArgs e) +10
System.Web.UI.Control.OnInit(EventArgs e) +99
System.Web.UI.Control.InitRecursive(Control namingContainer) +333
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

User avatar
Kentico Support
Kentico Support
kentico_mirekr - 3/23/2009 1:23:12 PM
   
RE:Error on page tab
Hi,

Since you are using custom web part on your document template (d:\Sites\www_interfaceglobal_com\CMSWebParts\Viewers\cmsrepeater-interface-pr.ascx.cs) it seems that in this code you are getting empty dataset. You can check it with DataHelper.DataSourceIsEmpty method and then if this dataset is not empty, you can use:

DataTableReader reader = temp.CreateDataReader();

Thank you.

Best Regards,
Miroslav Remias

User avatar
Member
Member
ayebarearnold-yahoo - 5/24/2011 4:02:10 AM
   
RE:Error on page tab
How do i get reed of this page error!!

User avatar
Kentico Support
Kentico Support
kentico_mirekr - 5/25/2011 10:45:27 PM
   
RE:Error on page tab
Hi,

Could you please post here your exception and describe us your issue in more detail way?

Thanks.
Miro Remias