'/' 應用程式中發生伺服器錯誤。

The source contains no DataRows.

描述: 在執行目前 Web 要求的過程中發生未處理的例外情形。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外詳細資訊: System.InvalidOperationException: The source contains no DataRows.

原始程式錯誤:


行 284:                       select myRow).Skip(pagesize * (pageindex - 1)).Take(pagesize);
行 285:
行 286:            result.Tables.Add(rows.CopyToDataTable());
行 287:
行 288:            return result;

原始程式檔: d:\vhosts\chinchun.com\httpdocs\App_Code\DataClass\Clothing.cs    行: 286

堆疊追蹤:


[InvalidOperationException: The source contains no DataRows.]
   System.Data.DataTableExtensions.LoadTableFromEnumerable(IEnumerable`1 source, DataTable table, Nullable`1 options, FillErrorEventHandler errorHandler) +989
   System.Data.DataTableExtensions.CopyToDataTable(IEnumerable`1 source) +78
   DataClass.Clothing.GetPagedClothingListFromCache(Int32 category_no, Int32 category_type, Nullable`1 is_show, Int32 pageindex, Int32 pagesize) in d:\vhosts\chinchun.com\httpdocs\App_Code\DataClass\Clothing.cs:286
   DataClass.Clothing.GetPagedClothingListFromCache(Int32 category_no, Int32 category_type, Int32 pageindex, Int32 pagesize) in d:\vhosts\chinchun.com\httpdocs\App_Code\DataClass\Clothing.cs:264

[TargetInvocationException: 引動過程的目標傳回例外狀況。]
   System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
   System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +71
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +261
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
   System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +19
   CCCache.CallMethod(String typename, String methodname, Object[] parameters) in d:\vhosts\chinchun.com\httpdocs\App_Code\DataClass\CCCache.cs:45
   Closet.BindCloset() in d:\vhosts\chinchun.com\httpdocs\Closet.aspx.cs:86
   Closet.Page_Load(Object sender, EventArgs e) in d:\vhosts\chinchun.com\httpdocs\Closet.aspx.cs:33
   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
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


版本資訊: Microsoft .NET Framework 版本:2.0.50727.8745; ASP.NET 版本:2.0.50727.8745