It is strangely: I removed this topic yesterday, because I found out a cause of error... But today I see it again and with answers.
All thanks for answers.
Earlier I compiled a code for AutoCAD 2009. I thought that if for assembly of Interop (the Autodesk.AutoCAD.Interop.Common.dll, and the Autodesk.AutoCAD.Interop.dll) "Copy Local" is equal "false", will be used the version found in work process (x86/x64). My program worked in AutoCAD 2009 x86 and AutoCAD 2009 x64 without recompilation (I compiled as "AnyCPU"). But when I compiled it for AutoCAD 2012 and AutoCAD 2013 it ceased to work. If I specify for the Autodesk.AutoCAD.Interop.Common.dll, and for the Autodesk.AutoCAD.Interop.dll the exact versions of libraries (x86 or x64) then everything works fine.
But I still compile my program as "AnyCPU". Whether there can be problems because of it? Or it is better to me to recompile such programs as "x68" and "x64"?
Best Regards