הליך המשנה הנוכחי אינו במצב Single Thread Apartment (STA). כדי להפעיל תהליך כאשר UseShellExecute מוגדר ל- True נדרש שהליך המשנה הנוכחי יהיה במצב STA. ודא שבפונקציה Main שלך STAThreadAttribute מסומן.
Click to search this error in Google
English version
Current thread is not in Single Thread Apartment (STA) mode. Starting a process with UseShellExecute set to True requires the current thread be in STA mode. Ensure that your Main function has STAThreadAttribute marked.