I have error when I upgrade from beta version 5/5/06 to 9/5/06 version

Posts   
 
    
nopchan
User
Posts: 56
Joined: 30-Apr-2005
# Posted on: 10-May-2006 03:49:46   

I have error when I upgrade from beta version (5/5/06) to (5/9/06) version

Error 10 The "GenerateResource" task failed unexpectedly. System.Reflection.TargetInvocationException: Type in the data at line 618, position 5, cannot be loaded because it threw the following exception during construction: Member 'XmlSchema' was not found. ---> System.Xml.XmlException: Type in the data at line 618, position 5, cannot be loaded because it threw the following exception during construction: Member 'XmlSchema' was not found. Line 618, position 5. ---> System.Runtime.Serialization.SerializationException: Member 'XmlSchema' was not found. at System.Runtime.Serialization.SerializationInfo.GetElement(String name, Type& foundType) at System.Runtime.Serialization.SerializationInfo.GetValue(String name, Type type) at System.Data.DataTable.DeserializeDataTable(SerializationInfo info, StreamingContext context, Boolean isSingleTable, SerializationFormat remotingFormat) at System.Data.DataTable..ctor(SerializationInfo info, StreamingContext context) at SD.LLBLGen.Pro.ORMSupportClasses.TypedListCore..ctor(SerializationInfo info, StreamingContext context) at SD.LLBLGen.Pro.ORMSupportClasses.TypedListBase2..ctor(SerializationInfo info, StreamingContext context) at DataModel.TypedListClasses.GljourlsListsTypedList..ctor(SerializationInfo info, StreamingContext context) in C:\Ess2006V2\DataModel\DatabaseGeneric\TypedListClasses\GljourlsListsTypedList.cs:line 125 --- 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) Account

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 10-May-2006 08:11:32   

That's caused by a type mismatch. Or a dll version mismatch But I don't have enogh information about your case, so please send us the following info:

1- When exactly does this error pops-up?

2- Do you refer to the same version of the RuntimeLibrabry in the Project (where you include the generated dlls)?

3- When you generate your code, what Generator configuration did you use?

4- What Template set did you use?

5- What version of Visual Studio do you use to build the other program?

nopchan
User
Posts: 56
Joined: 30-Apr-2005
# Posted on: 10-May-2006 10:40:29   

I don't have error when I change to 5/5/06 version

( I don't have error in LLBLGenProv2.0_beta_04302006, beta_05012006, beta_05022006, beta_05042006, beta_05052006 but I have error when I change to LLBLGenProv2.0_beta_05092006)

    • When exactly does this error pops-up? Build Solution

2- Do you refer to the same version of the RuntimeLibrabry in the Project (where you include the generated dlls)? I copy new version to old folder then build solution I have error I copy old version (5/6/06 llblgenpro beta version) to the same folder then build solution again I don't have error

3- When you generate your code, what Generator configuration did you use? I change default Preset information then save as

SD.PresetsAdapter.General2005Changed

SD.Tasks.Generic.PredicateFactoryClassGenerator  = Enabled
SD.Tasks.Generic.SortClauseFactoryClassGenerator = Enabled

4- What Template set did you use?

5- What version of Visual Studio do you use to build the other program?

 VS2005
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39612
Joined: 17-Aug-2003
# Posted on: 10-May-2006 11:00:51   

Have you regenerated the code with the 5/9 beta?

Do you see anything strange in the solution explorer in vs.net 2005 for hte typedlist? If you load the typedlist in vs.net 2005's editor, does that work?

Frans Bouma | Lead developer LLBLGen Pro
nopchan
User
Posts: 56
Joined: 30-Apr-2005
# Posted on: 10-May-2006 11:56:32   
  1. I copy new version into old folder
  2. Open llblgenpro project file then change preset for enabled two tasks.
  3. delete old generate projects file
  4. regenerate vs2005 projects file
  5. remove bin folder in my solution
  6. open VS2005 Solution
  7. remove default references ( c:\program files......)
  8. add references to new llblgen runtime
  9. rebuild solution
  10. I have error message in two projects (I don't have error in other projects)

Error 4 The "GenerateResource" task failed unexpectedly. System.Reflection.TargetInvocationException: Type in the data at line 618, position 5, cannot be loaded because it threw the following exception during construction: Member 'XmlSchema' was not found. ---> System.Xml.XmlException: Type in the data at line 618, position 5, cannot be loaded because it threw the following exception during construction: Member 'XmlSchema' was not found. Line 618, position 5. ---> System.Runtime.Serialization.SerializationException: Member 'XmlSchema' was not found. at System.Runtime.Serialization.SerializationInfo.GetElement(String name, Type& foundType) at System.Runtime.Serialization.SerializationInfo.GetValue(String name, Type type) at System.Data.DataTable.DeserializeDataTable(SerializationInfo info, StreamingContext context, Boolean isSingleTable, SerializationFormat remotingFormat) at System.Data.DataTable..ctor(SerializationInfo info, StreamingContext context) at SD.LLBLGen.Pro.ORMSupportClasses.TypedListCore..ctor(SerializationInfo info, StreamingContext context) at SD.LLBLGen.Pro.ORMSupportClasses.TypedListBase2..ctor(SerializationInfo info, StreamingContext context) at DataModel.TypedListClasses.GljourlsListsTypedList..ctor(SerializationInfo info, StreamingContext context) in C:\ess2006v2\DataModel\DatabaseGeneric\TypedListClasses\GljourlsListsTypedList.cs:line 125 --- 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) Account


Error 6 The "GenerateResource" task failed unexpectedly. System.Reflection.TargetInvocationException: Type in the data at line 840, position 5, cannot be loaded because it threw the following exception during construction: Member 'XmlSchema' was not found. ---> System.Xml.XmlException: Type in the data at line 840, position 5, cannot be loaded because it threw the following exception during construction: Member 'XmlSchema' was not found. Line 840, position 5. ---> System.Runtime.Serialization.SerializationException: Member 'XmlSchema' was not found. at System.Runtime.Serialization.SerializationInfo.GetElement(String name, Type& foundType) at System.Runtime.Serialization.SerializationInfo.GetValue(String name, Type type) at System.Data.DataTable.DeserializeDataTable(SerializationInfo info, StreamingContext context, Boolean isSingleTable, SerializationFormat remotingFormat) at System.Data.DataTable..ctor(SerializationInfo info, StreamingContext context) at SD.LLBLGen.Pro.ORMSupportClasses.TypedListCore..ctor(SerializationInfo info, StreamingContext context) at SD.LLBLGen.Pro.ORMSupportClasses.TypedListBase2..ctor(SerializationInfo info, StreamingContext context) at DataModel.TypedListClasses.PartsHistoryTypedList..ctor(SerializationInfo info, StreamingContext context) in C:\ess2006v2\DataModel\DatabaseGeneric\TypedListClasses\PartsHistoryTypedList.cs:line 132 --- 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) Parts


Otis avatar
Otis
LLBLGen Pro Team
Posts: 39612
Joined: 17-Aug-2003
# Posted on: 10-May-2006 12:01:56   

Is the typed list on a form in a design time databinding scenario?

I've changed the serialization/deserialization code of the typedlist for .NET 2.0, because the original code didn't work in all cases on .NET 2.0 due to some obscure issue in .NET itself, so I worked around it by simply using the new .NET 2.0 binary serialization in the datatable.

Frans Bouma | Lead developer LLBLGen Pro
nopchan
User
Posts: 56
Joined: 30-Apr-2005
# Posted on: 10-May-2006 12:03:27   
  1. I close solution in VS2005
  2. I copy old beta version to the same folder
  3. reopen my solution again then click build solution. It 's work ok . I don't have error in my solution (llblgen 2.0 beta 5/5/06)
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39612
Joined: 17-Aug-2003
# Posted on: 10-May-2006 12:26:16   

Yes, that's because the change I was talking about was made in the 5/9 beta, so you will run into this when you use the 5/9 runtimes.

Please answer my question about the design time databinding stuff, it's important.

(edit): the exception occurs in compilation of the resources. These are located in the resx files of your project for forms and the like.

When you place an object like a typedlist onto a form, vs.net will serialize the object binary to the resx file of the form. This was thus done using the old serialization code. Now, with the new serialization code, this doesn't match and it can't DEserialize the binary data again.

So, my question: do you have a typedlist onto a form using design time databinding? If so, could you open that form in vs.net (design)?

Frans Bouma | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39612
Joined: 17-Aug-2003
# Posted on: 10-May-2006 15:32:45   

I can't reproduce it in any way.... disappointed Very strange.

Frans Bouma | Lead developer LLBLGen Pro
nopchan
User
Posts: 56
Joined: 30-Apr-2005
# Posted on: 11-May-2006 07:50:04   

I can solve the problem now.

Thank.