-
July 27th, 2011, 05:29 AM
#1
.Net Remoting 2.0 Accessing winform control value in a remote call
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
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|