Il thread corrente non è in modalità Single Thread Apartment (STA). Per avviare un processo con UseShellExecute impostato ...

Il thread corrente non è in modalità Single Thread Apartment (STA). Per avviare un processo con UseShellExecute impostato su true, è necessario che il thread corrente sia in modalità STA. Assicurarsi che la funzione Main sia contrassegnata con STAThreadAttribute.