Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
If you are getting error saying "ActiveX control cannot be instantiated because the current thread is not in a single-threaded apartment." then you need to apply STAThreadAttribute attribute to the entry point method.
Ex -
[STAThread]
static void Main(string[] args)
{
}
This attribute indicates that the COM threading model for an application is single-threaded apartment (STA).
for more details please refer https://msdn.microsoft.com/en-us/library/system.stathreadattribute.aspx.