Server Error in '/' Application.

Length cannot be less than zero.
Parameter name: length

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.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length

Source Error:


Line 10: private const string channel = "goods";
Line 11: private const int pagesize = 20;
Line 12: private string cacheFile = null;
Line 13: override protected void OnInit(EventArgs e)
Line 14: {

Source File: c:\webhosting\data\aspx\main\goods_list.aspx    Line: 12

Stack Trace:


[ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length]
   System.String.Substring(Int32 startIndex, Int32 length) +12953464
   DTcms.Web.UI.Page.article_list.ShowPage() in D:\项目网站\项目通用部分\源程序 - 副本\DTcms.Web.UI\Page\article_list.cs:38
   DTcms.Web.UI.BasePage..ctor() in D:\项目网站\项目通用部分\源程序 - 副本\DTcms.Web.UI\BasePage.cs:35
   DTcms.Web.UI.Page.article_list..ctor() in D:\项目网站\项目通用部分\源程序 - 副本\DTcms.Web.UI\Page\article_list.cs:19
   ASP.aspx_main_goods_list_aspx..ctor() in c:\webhosting\data\aspx\main\goods_list.aspx:12
   __ASP.FastObjectFactory_app_web_gae5biwr.Create_ASP_aspx_main_goods_list_aspx() in c:\windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\de562205\c53aca6a\App_Web_gae5biwr.15.cs:0
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +31
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +104
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33
   System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) +39
   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +386
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4330.0