Nitin Verma
New member
Hi All,
I have a winform app in VS - 2008, It is client server based application using .net remoting 2.0.
On My server I have a Method which would be called from client.
Now in this method, I want to update value of Datagrid in one of my winform. Here I am getting an error:
"An error occurred creating the form. See Exception.InnerException for details. The error is: ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment."
I tried converting my thread to STA using SetApartmentState but was not able to do so...
Please provide a solution
Regards,
Nitin Verma
I have a winform app in VS - 2008, It is client server based application using .net remoting 2.0.
On My server I have a Method which would be called from client.
Now in this method, I want to update value of Datagrid in one of my winform. Here I am getting an error:
"An error occurred creating the form. See Exception.InnerException for details. The error is: ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment."
I tried converting my thread to STA using SetApartmentState but was not able to do so...
Please provide a solution
Regards,
Nitin Verma