“/”應用程式中的服務器錯誤。
--------------------------------------------------------------------------------
列名無效。 [ Node name (if any) = Extent1,Column name = STid ]
說明: 執行當前 Web 請求期間,出現未經處理的例外。請檢查堆疊跟蹤資訊,以了解有關該錯誤以及代碼中導致錯誤的出處的詳細資訊。
例外詳細資訊: System.Data.SqlServerCe.SqlCeException: 列名無效。 [ Node name (if any) = Extent1,Column name = STid ]
源錯誤:
行 9: int LineCityId = ViewBag.LineCityId;
行 10: IList<LinesCategory> LinesCategoryList = Entity.LinesCategory.Where(n => n.Status == 1 && (n.PLCid == 0 || n.Cid == LineCityId)).OrderBy(n => n.Sort).ToList();
行 11: IList<AdInfo> AdInfoList = ShopEntity.AdInfo.Where(n => n.ASid == 14 && n.Visible == 1).OrderBy(n => n.Sort).ToList();
行 12: IList<AdInfo> ZTAdInfoList = ShopEntity.AdInfo.Where(n => n.ASid == 15 && n.Visible == 1).OrderBy(n => n.Sort).ToList();
行 13: IList<News> LYNewList = Entity.News.Where(n => n.NNid.Contains("|57|")).OrderByDescending(n => n.Nid).Take(3).ToList();
源檔案: e:\home\localuser\601010\www\lvyou\Areas\Base\Views\Home\Base.cshtml 行: 11
堆疊跟蹤:
[SqlCeException (0x80004005): 列名無效。 [ Node name (if any) = Extent1,Column name = STid ]]
System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr) +48
System.Data.SqlServerCe.SqlCeCommand.CompileQueryPlan() +644
System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options) +542
System.Data.SqlServerCe.SqlCeCommand.ExecuteReader(CommandBehavior behavior) +19
System.Data.SqlServerCe.SqlCeMultiCommand.ExecuteReader(CommandBehavior behavior) +270
System.Data.SqlServerCe.SqlCeMultiCommand.ExecuteDbDataReader(CommandBehavior behavior) +4
System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior) +10
System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) +437
[EntityCommandExecutionException: 執行命令定義時出錯。有關詳細資訊,請參閱內部例外。]
System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) +507
System.Data.Objects.Internal.ObjectQueryExecutionPlan.Execute(ObjectContext context, ObjectParameterCollection parameterValues) +730
System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) +131
System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() +36
System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +369
System.Linq.Enumerable.ToList(IEnumerable`1 source) +58
ASP._Page_Areas_Base_Views_Home_Base_cshtml.Execute() in e:\home\localuser\601010\www\lvyou\Areas\Base\Views\Home\Base.cshtml:11
System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +199
System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +89
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78
System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +241
System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +107
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +291
System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +23
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +245
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +22
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +245
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +22
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +245
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +22
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +176
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +311
System.Web.Mvc.Controller.ExecuteCore() +105
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +88
System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +34
System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +19
System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +10
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +31
System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +23
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +59
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9657896
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
--------------------------------------------------------------------------------
版本資訊: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.34237
uj5u.com熱心網友回復:
可能是 列號不存在或者錯誤uj5u.com熱心網友回復:
發錯地方了 這是Delphi 版塊!uj5u.com熱心網友回復:
這不是Delphi代碼!轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/98929.html
標籤:數據庫相關
下一篇:DLL封裝Frame
