Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Bugs & Issues> Array not long enough on save entity
 

Pages: 1
Bugs & Issues
Array not long enough on save entity
Page:1/1 

  Print all messages in this thread  
Poster Message
Torsten
User



Location:

Joined on:
13-Mar-2015 14:22:54
Posted:
21 posts
# Posted on: 17-Jan-2020 10:27:48.  
We just migrating from Version 4.2 to 5.6

After I fixed every compiler errors, our project starts successfully.

But, when I want to edit an entity and save it with

Code:

using (DataAccessAdapter daa = DataAccessAdapter.GetCUPnew())
                    {
daa.SaveEntity(entityToSave, true, false);
}


I get the Exception:

Source array was not long enough. Check srcIndex and length, and the array's lower bounds.

on

EntityFieldPersistenceInfoList.cs:line 113

I found this Post https://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=24186

But we don't use different projects and DBSpecific and Generic are both in one.

  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37797 posts
# Posted on: 17-Jan-2020 10:29:35.  
Please make sure you're using the right generated code (the csproj files have moved!) and have changed to the new runtime libraries. It looks like you're using the v4.2 dbspecific project.

Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Torsten
User



Location:

Joined on:
13-Mar-2015 14:22:54
Posted:
21 posts
# Posted on: 17-Jan-2020 13:03:41.  
Ok, sorry, i didn't see that the project files have moved.

Now I have to reorganise my solution and the error is resolved.
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37797 posts
# Posted on: 17-Jan-2020 15:23:02.  
Yes, please consult this document: https://www.llblgen.com/Documentation/5.6/LLBLGen%20Pro%20RTF/migratingcode.htm

It warns you we made that change in 5.4. (we had to due to the new project format of csproj/vbproj)


Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Pages: 1  


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

Version: 2.1.12172008 Final.