I am upgrading a WinForms application using VS2005 and the 7/12 (also tried 7/22) release of LLBLGen 2.
Fixed all of the other breaking code changes but am left with one compile time error.
I had previously dragged EntityCollections from 1.2005.1 onto WinForms and set the datasource of a bindingsource to the entitycollection instance and the form controls datasource to the bindingsource.
It was all working well up until the upgrade attempt.
I also created a new winforms test app and referenced the new Generic and DBSpecific generated libraries and was able to use them (very brief test).
Any idea how I can edit the upgraded app serialized resource files to add the concurrencyPredicateFactoryToUse' property? Or otherwise fix the code.
I have cleaned the solution and verified all of the references and tried to rebuild the solutoin.
BTW, I was not using concurrencyPredicateFactories yet...
(renamed actual app name to MyTetUI)
Error 1 The "GenerateResource" task failed unexpectedly.
System.Reflection.TargetInvocationException: Type in the data at line 132, position 5, cannot be loaded because it threw the following exception during construction: Member '_concurrencyPredicateFactoryToUse' was not found. ---> System.Xml.XmlException: Type in the data at line 132, position 5, cannot be loaded because it threw the following exception during construction: Member '_concurrencyPredicateFactoryToUse' was not found. Line 132, position 5. ---> System.Runtime.Serialization.SerializationException: Member ' ' was not found.
at System.Runtime.Serialization.SerializationInfo.GetElement(String name, Type& foundType)
at System.Runtime.Serialization.SerializationInfo.GetValue(String name, Type type)
at SD.LLBLGen.Pro.ORMSupportClasses.CollectionCore`1..ctor(SerializationInfo info, StreamingContext context)
at SD.LLBLGen.Pro.ORMSupportClasses.EntityCollectionBase2`1..ctor(SerializationInfo info, StreamingContext context)
at SD.LLBLGen.Pro.ORMSupportClasses.EntityCollectionNonGeneric..ctor(SerializationInfo info, StreamingContext context)
at HTI.FFBL.HelperClasses.EntityCollection..ctor(SerializationInfo info, StreamingContext context) in C:\Code\HTI\Apps\MyTestApp\MyTestApp3\FFBL2\DatabaseGeneric\HelperClasses\EntityCollection.cs:line 53
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at Microsoft.Build.Shared.ExceptionHandling.RethrowUnlessFileIO(Exception e)
at Microsoft.Build.Tasks.ProcessResourceFiles.ProcessFile(String inFile, String outFile)
at Microsoft.Build.Tasks.ProcessResourceFiles.Run(TaskLoggingHelper log, ITaskItem[] assemblyFilesList, ArrayList inputs, ArrayList outputs, Boolean sourcePath, String language, String namespacename, String filename, String classname, Boolean publicClass)
at Microsoft.Build.Tasks.ProcessResourceFiles.Run(TaskLoggingHelper log, ITaskItem[] assemblyFilesList, ArrayList inputs, ArrayList outputs, Boolean sourcePath, String language, String namespacename, String filename, String classname, Boolean publicClass)
at Microsoft.Build.Tasks.GenerateResource.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound) MyTestAppUI