I have a program which had compiled for acad 2010 and windows XP x86. I want to rebuild for acad 2014 and win7-8 x64. I did import 2014's dll (AcMgd.dll, AcDbMgd.dll, AcCui.dll, AcCoreMgd.dll) and built. There is no errors. But when I wantted to run one of my commands it gives an error. I attached the error message. what am I doing wrong?
The error message, as it appears, looks like it has nothing to do with upgrading to AutoCAD2015. Rather, it seems that your code tries to set an entity's layer to a layer that does not exist (hence the "key not found" error). Have you debugged your code to see what layer name is used in that line of code and verified that layer's existence?