'System.STAThreadAttribute' e 'System.MTAThreadAttribute' não podem ser aplicados ao mesmo método

Os atributos System.STAThreadAttribute e System.MTAThreadAttribute são mutuamente exclusivos.

ID do erro: BC31512

Para corrigir este erro

  1. Aplique System.MTAThreadAttribute ou System.STAThreadAttribute, mas não ambos.

Confira também