CNEXT - CATscript error messages - scripting ERR_1002

I am trying to run VSTA-VBA code. The same code I ran few days before, but now I am getting following error code CNEXT - CATscript error messages - scripting ERR_1002.

I tried to change the .NET version to 4.6.2. Still No change is error.

Can someone specify why I am getting the error?