Server Error in '/' Application.
--------------------------------------------------------------------------------
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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[IndexOutOfRangeException: Cannot find table 0.]
System.Data.DataTableCollection.get_Item(Int32 index) +60
Discuz.Forum.ForumPageTemplate.GetTemplateVarList(String forumpath, String skinName) +394
Discuz.Forum.ForumPageTemplate.ReplaceSpecialTemplate(String forumpath, String skinName, String strTemplate) +361
Discuz.Common.PageTemplate.ConvertTags(Int32 nest, String forumpath, String skinName, String inputStr, Int32 templateid) +8033
Discuz.Common.PageTemplate.GetTemplate(String forumpath, String skinName, String templateName, Int32 nest, Int32 templateid) +1410
Discuz.Forum.ForumPageTemplate.GetTemplate(String forumpath, String skinName, String templateName, Int32 nest, Int32 templateid) +21
Discuz.ForumPage.Admin.templatesgrid.CreateTemplateByDirectory(String directorypath) +578
Discuz.ForumPage.Admin.templatesgrid.Page_Load(Object sender, EventArgs e) +81
System.Web.UI.Control.OnLoad(EventArgs e) +99
Discuz.Forum.AdminPage.OnLoad(EventArgs e) +408
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42