hello
I have one problem when i show data on gridview1 in entity framwork then it show below error
Server Error in '/dealer_invoice' Application.
The data reader is incompatible with the specified 'DatabaseModel.Max_id_showDatail_Result'. A member of the type, 'Column1', 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.EntityCommandExecutionException: The data reader is incompatible with the specified 'DatabaseModel.Max_id_showDatail_Result'. A member of the type, 'Column1', does not have a corresponding column in the data reader with the same name.
Source Error:
Line 816: }
Line 817:
Line 818: return base.ExecuteFunction<Max_id_showDatail_Result>("Max_id_showDatail", aaParameter);
Line 819: }
Line 820:
Source File: c:\Users\Administrator\Documents\Visual Studio 2010\WebSites\dealer_invoice\App_Code\Model.Designer.cs Line: 818
Stack Trace:
[EntityCommandExecutionException: The data reader is incompatible with the specified 'DatabaseModel.Max_id_showDatail_Result'. A member of the type, 'Column1', does not have a corresponding column in the data reader with the same name.]
System.Data.Query.InternalTrees.ColumnMapFactory.GetMemberOrdinalFromReader(DbDataReader storeDataReader, EdmMember member, EdmType currentType, Dictionary`2 renameList) +2677116
System.Data.Query.InternalTrees.ColumnMapFactory.GetColumnMapsForType(DbDataReader storeDataReader, EdmType edmType, Dictionary`2 renameList) +172
System.Data.Query.InternalTrees.ColumnMapFactory.CreateColumnMapFromReaderAndType(DbDataReader storeDataReader, EdmType edmType, EntitySet entitySet, Dictionary`2 renameList) +24
System.Data.Query.InternalTrees.ColumnMapFactory.CreateFunctionImportStructuralTypeColumnMap(DbDataReader storeDataReader, FunctionImportMapping mapping, EntitySet entitySet, StructuralType baseStructuralType) +72
System.Data.EntityClient.FunctionColumnMapGenerator.System.Data.EntityClient.EntityCommandDefinition.IColumnMapGenerator.CreateColumnMap(DbDataReader reader) +18
System.Data.Objects.ObjectContext.CreateFunctionObjectResult(EntityCommand entityCommand, EntitySet entitySet, EdmType edmType, MergeOption mergeOption) +524
System.Data.Objects.ObjectContext.ExecuteFunction(String functionName, MergeOption mergeOption, ObjectParameter[] parameters) +218
System.Data.Objects.ObjectContext.ExecuteFunction(String functionName, ObjectParameter[] parameters) +53
DatabaseModel.DatabaseEntities.Max_id_showDatail(Nullable`1 aa) in c:\Users\Administrator\Documents\Visual Studio 2010\WebSites\dealer_invoice\App_Code\Model.Designer.cs:818
ViewDetailCustomer.bind() in c:\Users\Administrator\Documents\Visual Studio 2010\WebSites\dealer_invoice\ViewDetailCustomer.aspx.cs:21
ViewDetailCustomer.Page_Load(Object sender, EventArgs e) in c:\Users\Administrator\Documents\Visual Studio 2010\WebSites\dealer_invoice\ViewDetailCustomer.aspx.cs:15
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) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1