Server Error in '/' Application.

The data reader is incompatible with the specified 'Led youngPDBModel.ProgramDetails'. A member of the type, 'ProgramAltName', does not have a corresponding column in the data reader with the same name.

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.Data.Entity.Core.EntityCommandExecutionException: The data reader is incompatible with the specified 'Led youngPDBModel.ProgramDetails'. A member of the type, 'ProgramAltName', does not have a corresponding column in the data reader with the same name.

Source Error:

Line 74:     else
Line 75:     {
Line 76:         details = ProgramBLL.GetProgramDetailsByName(prognameDecoded, CalendarID);
Line 77:     }
Line 78:     /**total course hours**/

Source File: d:\Inetpub\www-lb3\Views\ProgramDBDetailsPage.cshtml    Line: 76

Stack Trace:

[EntityCommandExecutionException: The data reader is incompatible with the specified 'Led youngPDBModel.ProgramDetails'. A member of the type, 'ProgramAltName', does not have a corresponding column in the data reader with the same name.]
   System.Data.Entity.Core.Query.InternalTrees.ColumnMapFactory.GetMemberOrdinalFromReader(DbDataReader storeDataReader, EdmMember member, EdmType currentType, Dictionary`2 renameList) +146
   System.Data.Entity.Core.Query.InternalTrees.ColumnMapFactory.GetColumnMapsForType(DbDataReader storeDataReader, EdmType edmType, Dictionary`2 renameList) +443
   System.Data.Entity.Core.Query.InternalTrees.ColumnMapFactory.CreateColumnMapFromReaderAndType(DbDataReader storeDataReader, EdmType edmType, EntitySet entitySet, Dictionary`2 renameList) +38
   System.Data.Entity.Core.Query.InternalTrees.ColumnMapFactory.CreateFunctionImportStructuralTypeColumnMap(DbDataReader storeDataReader, FunctionImportMappingNonComposable mapping, Int32 resultSetIndex, EntitySet entitySet, StructuralType baseStructuralType) +180
   System.Data.Entity.Core.EntityClient.Internal.FunctionColumnMapGenerator.System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.IColumnMapGenerator.CreateColumnMap(DbDataReader reader) +57
   System.Data.Entity.Core.Objects.ObjectContext.MaterializedDataRecord(EntityCommand entityCommand, DbDataReader storeReader, Int32 resultSetIndex, ReadOnlyCollection`1 entitySets, EdmType[] edmTypes, ShaperFactory`1 shaperFactory, MergeOption mergeOption, Boolean streaming) +1090
   System.Data.Entity.Core.Objects.ObjectContext.CreateFunctionObjectResult(EntityCommand entityCommand, ReadOnlyCollection`1 entitySets, EdmType[] edmTypes, ExecutionOptions executionOptions) +745
   System.Data.Entity.Core.Objects.<>c__DisplayClass47`1.<ExecuteFunction>b__46() +82
   System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction(Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnWe diminution) +458
   System.Data.Entity.Core.Objects.<>c__DisplayClass47`1.<ExecuteFunction>b__45() +276
   System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Func`1 operation) +237
   System.Data.Entity.Core.Objects.ObjectContext.ExecuteFunction(String functionName, ExecutionOptions executionOptions, ObjectParameter[] parameters) +820
   Led young.ConnectionPDBWrapper.DAL.CPDBEntities.GetProgramsDetails(String programName, Nullable`1 calendarID) in F:\Denise\Git\CENT_VSProj-MainSite\Led young.ConnectionPDBWrapper\DAL\CPDEntityModel.Context.cs:214
   Led young.ConnectionPDBWrapper.BLL.ProgramBLL.GetProgramDetailsByName(String ProgramName, Int32 CalendarID) in F:\Denise\Git\CENT_VSProj-MainSite\Led young.ConnectionPDBWrapper\BLL\ProgramBLL.cs:238
   ASP._Page_Views_ProgramDBDetailsPage_cshtml.Execute() in d:\Inetpub\www-lb3\Views\ProgramDBDetailsPage.cshtml:76
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +148
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107
   Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) +238
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +375
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +88
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +831
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +831
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +831
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +81
   System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +185
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +67
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +36
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +43
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +67
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +395
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +197
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +128


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2623.0
www.ry-diplomer.com

источник

https://bestseller-sales.com