Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Bugs & Issues> I have error when I upgrade from beta version 5/5/06 to 9/5/06 version
 

Pages: 1
Bugs & Issues
I have error when I upgrade from beta version 5/5/06 to 9/5/06 version
Page:1/1 

  Print all messages in this thread  
Poster Message
nopchan
User



Location:

Joined on:
30-Apr-2005 02:19:03
Posted:
56 posts
# 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
  Top
Walaa
Support Team



Location:

Joined on:
21-Aug-2005 16:03:48
Posted:
14569 posts
# 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?


  Top
nopchan
User



Location:

Joined on:
30-Apr-2005 02:19:03
Posted:
56 posts
# 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)


1. - 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
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37806 posts
# 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
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
nopchan
User



Location:

Joined on:
30-Apr-2005 02:19:03
Posted:
56 posts
# 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
______________________________________

  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37806 posts
# 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
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
nopchan
User



Location:

Joined on:
30-Apr-2005 02:19:03
Posted:
56 posts
# Posted on: 10-May-2006 12:03:27.  
11. I close solution in VS2005
12. I copy old beta version to the same folder
13. 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)
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37806 posts
# 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
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37806 posts
# Posted on: 10-May-2006 15:32:45.  
I can't reproduce it in any way.... Dissapointed Very strange.
Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
nopchan
User



Location:

Joined on:
30-Apr-2005 02:19:03
Posted:
56 posts
# Posted on: 11-May-2006 07:50:04.  
I can solve the problem now.

Thank.


  Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.