Hi Kenneth.
Thanks for your reply. I deleted the whole CuteSoft_Client folder and copied it again. It still failed. If it helps at all the function which fails is 'Element_GetAllElements'.