Question .Net Remoting 2.0 Accessing winform control value in a remote call

Nitin Verma

New member
Joined
Jul 27, 2011
Messages
1
Location
Jaipur, Rajasthan, India
Programming Experience
5-10
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
 

Latest posts

Back
Top