Array not long enough on save entity

Posts   
 
    
Torsten
User
Posts: 26
Joined: 13-Mar-2015
# 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


 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.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 38110
Joined: 17-Aug-2003
# 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.

Torsten
User
Posts: 26
Joined: 13-Mar-2015
# 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.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 38110
Joined: 17-Aug-2003
# 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)