ObjectForScripting's class must be visible to COM. Verify that the object is public, or consider adding the ComVisible attribute ...