Hi everyone, i am doing an upgrade from NAV2013r2 to NAV2018. In the old version, I've created a codeunit to manage different connection for an integration with a delivery enterprise. For this, in the procedures of the codeunit, exist different automation variables. In the old server, work perfect, but when I'0m trying o compile this CodeUbnit in NAV2018, in a new server, I get this error: "Cannot obtain information of the type library The type library could be damaged or has an invalid format. Try to register again OLE control or the Automation server" Any hint?
Maybe a little bit off topic but ...When every you use custom automations in Navision, you should never put them into standard objects. Always create a separate CodeUnit as a wrapper. Then call the wrapper CodeUnit from your C/AL code.The reason for this is two fold. 1/ The issue you have here would be a trivial fix, since you would only have to edit the wrapper CU, everything else would remain the same.2/ If you need to work on the other code, you don't need to have all those automation installed on the client you are using. So it makes it much easier to compile code and to debugg.
Thanks. Yes, this is a custom CU, separated from the others, to control one integration with a messenger service
Ahh, normally CU in our forums is used to refer to Microsoft's monthly cumulative updates - the CU's. I guess you mean codeunit = CU? hehe
Yes sorry, it's my fault! I think that it's not hard to change the automation objects to dotnet objects. What it is more laborius, it's to test again all the integraton with the service, now that finally is working perfectly... If there is no other option, I will do it, of course.
Thank you all!