check whether you have .net add-in properly loaded
check your application is launched before running the script
else let us know what type of object it is a spyshot will help
check your application is launched before running the script
else let us know what type of object it is a spyshot will help