ERROR [STAThread] C#

Este error se presenta en C#  [STAThread]

"Current thread must be set to single thread apartment (STA) mode before OLE"
se soluciona incluyendo [STAThread] en el método main:

[STAThread]
static void Main(string[] args)
{
}


Comentarios

Entradas populares