Server Error in '/' Application.

Column 'nvc_content_img' does not belong to table Table.

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: Column 'nvc_content_img' does not belong to table Table.

Source Error:


Line 22:                 
  • Line 23: @{ Line 24: if (dr["nvc_content_img"].ToString()!="" && dr["nvc_content_img"].ToString()!=null) Line 25: { Line 26:

  • Source File: d:\naicai\电商平台\Views\Jingyeyuan\NewsList.cshtml    Line: 24

    Stack Trace:

    
    [ArgumentException: Column 'nvc_content_img' does not belong to table Table.]
       System.Data.DataRow.GetDataColumn(String columnName) +5953431
       System.Data.DataRow.get_Item(String columnName) +13
       ASP._Page_Views_Jingyeyuan_NewsList_cshtml.Execute() in d:\naicai\电商平台\Views\Jingyeyuan\NewsList.cshtml:24
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +197
       System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +104
       System.Web.WebPages.StartPage.RunPage() +17
       System.Web.WebPages.StartPage.ExecutePageHierarchy() +64
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78
       System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +257
       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__DisplayClass1a.b__17() +23
       System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +245
       System.Web.Mvc.<>c__DisplayClass1c.b__19() +22
       System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +176
       System.Web.Mvc.Async.<>c__DisplayClass2a.b__20() +75
       System.Web.Mvc.Async.<>c__DisplayClass25.b__22(IAsyncResult asyncResult) +99
       System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
       System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +44
       System.Web.Mvc.<>c__DisplayClass1d.b__18(IAsyncResult asyncResult) +14
       System.Web.Mvc.Async.<>c__DisplayClass4.b__3(IAsyncResult ar) +16
       System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
       System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +55
       System.Web.Mvc.Async.<>c__DisplayClass4.b__3(IAsyncResult ar) +16
       System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
       System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +45
       System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
       System.Web.Mvc.<>c__DisplayClass8.b__3(IAsyncResult asyncResult) +25
       System.Web.Mvc.Async.<>c__DisplayClass4.b__3(IAsyncResult ar) +16
       System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
       System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28
       System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9871377
       System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +159
    


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3535.0
    Baidu
    sogou