CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2011
    Posts
    2

    Question .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

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

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

    Can you explain where the datagrid is? Is it on the client or the server?

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
  •  





Click Here to Expand Forum to Full Width

Featured