What is the reason behind this error: "You cannot create an Automation object "ADO Connection" on Microsoft Dynamics NAV Server. You must create it on a client computer."

If anybody can give a solution for below mentioned error, it would be highly appreciable. I got this error when I was creating a new codeunit with using ADO automation variable.

“You cannot create an Automation object “ADO Connection” on Microsoft Dynamics NAV Server. You must create it on a client computer.”

Thanks,

Jithin Mathew.

Thanks Mohana. I got the solution from your post on MIBUSO. The solution is change the code like shown below:

CREATE(ADOConnection,FALSE,TRUE);