System._ComObject cannot be serialized

That did the trick!

Is “Supports Persistence” setting “Yes” by default? I am not sure if I have turned it on by accident. When should I need to turn this setting to “Yes”?

Thanks for your help!