Hi Guys,
I am getting an exception at runtime when I try to run a query on an entity. I've added two new fields to the entity and regenerated the code.
The new fields show up in the entity and in the fields for that entity(in the generated code). Visual Studio's IntelliSense picks them up as well.
They are present in the database as well, but I am getting a runtime error when I try to use them.
I tried rebuilding the solution, cleaning and rebuilding the solution, manually removing the files from the bin directories and rebuilding, and removing and re-adding the references, but nothing works.
Here's my version number:
SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll
2.5.7.1019
Here's the exception:
The field name 'OptOutCount' isn't known in the element 'ListImportEntity'
Parameter name: fieldName
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: The field name 'OptOutCount' isn't known in the element 'ListImportEntity'
Parameter name: fieldName
Source Error:
Line 139: {
Line 140:
Line 141: adapter.FetchEntityCollection(collection, bucket);
Line 142: }
Line 143:
Source File: D:\Downloads\Work\Publicaster7\Publicaster7\Public\Presenter\Classes\DefaultPageDashboardPresenter.cs Line: 141
Stack Trace:
[ArgumentException: The field name 'OptOutCount' isn't known in the element 'ListImportEntity'
Parameter name: fieldName]
SD.LLBLGen.Pro.ORMSupportClasses.PersistenceInfoProviderBase.GetFieldPersistenceInfo(String elementName, String fieldName) +349
SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.GetFieldPersistenceInfo(IEntityField2 field) +253
SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.GetFieldPersistenceInfos(IEntityFields2 fields) +124
SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchEntityCollectionInternal(IEntityCollection2 collectionToFill, IRelationPredicateBucket& filterBucket, Int32 maxNumberOfItemsToReturn, ISortExpression sortClauses, ExcludeIncludeFieldsList excludedIncludedFields, Int32 pageNumber, Int32 pageSize) +849
SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchEntityCollection(IEntityCollection2 collectionToFill, IRelationPredicateBucket filterBucket, Int32 maxNumberOfItemsToReturn, ISortExpression sortClauses, IPrefetchPath2 prefetchPath, ExcludeIncludeFieldsList excludedIncludedFields, Int32 pageNumber, Int32 pageSize) +186
SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchEntityCollection(IEntityCollection2 collectionToFill, IRelationPredicateBucket filterBucket) +54
BlueSkyFactory.Publicaster7.Public.Presenter.DefaultPageDashboardPresenter.GetMailingListImportLink(Int32 taskID) in D:\Downloads\Work\Publicaster7\Publicaster7\Public\Presenter\Classes\DefaultPageDashboardPresenter.cs:141
BlueSkyFactory.Publicaster7.Public.Presenter.DefaultPageDashboardPresenter.GetTaskList(DateTime startDate) in D:\Downloads\Work\Publicaster7\Publicaster7\Public\Presenter\Classes\DefaultPageDashboardPresenter.cs:87
BlueSkyFactory.Publicaster7.CI.default2.bindTaskList(DateTime taskDate) in D:\Downloads\Work\Publicaster7\Publicaster7\Public\WebUI\BlueSkyFactory.Publicaster7.CI\index.aspx.cs:133
BlueSkyFactory.Publicaster7.CI.default2.Page_Load(Object sender, EventArgs e) in D:\Downloads\Work\Publicaster7\Publicaster7\Public\WebUI\BlueSkyFactory.Publicaster7.CI\index.aspx.cs:55
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
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053