Following suggestions in Chris Sell's article about accessing properties
of a form using multiple threads, I decided to implement this in my
program. I first made up a quick test program to make sure I understood
everthing that was happening. After successfully implementing the test
program (Which got a dataset from a web service to fill a combobox
asynchronously) I decided to try and implement it on my main program,
only to receive an error such as the following:

'System.Runtime.Remoting.RemotingException' occurred in mscorlib.dll

I was sure my code was correct, and became a little more curious. After
playing with my sample app some more, I discovered that the program
fails on the BeginInvoke() method when called on any assembly that was
loaded using Assembly.LoadFrom(). Now, I am asking why!

I reworked my sample app to have a container app, and a form that is
dynamically loaded into a panel on the container app. The form loads,
but as soon as I begin the asynchronous call, it gives me the above
error.

Can someone please tell me what I'm doing wrong? Is this just not
possible on assemblies that are loaded remotely? Is there a workaround?
I can provide the code from my sample app, but it is pretty basic.

Thanks,

Brian

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to