July 27th, 2011, 05:29 AM
.Net Remoting 2.0 Accessing winform control value in a remote call
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
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!