C# Remoting Error While Sending Bitmap

I have recently been working with remoting in C# .NET and i used the following at codeproject to get me started.


I copied everything that it uses to send a string but modified them to send Bitmaps but when i try to send the bitmap i get the following error:

"Because of security restrictions, the type System.Runtime.Remoting.ObjRef cannot be accessed."

Can someone please tell me why this is happening and how to fix it?

Thanks in advance!

Who is Participating?
Anthony408Author Commented:
Thanks Cebik,

This helped a lot i didn't even think of using a byte array to send it and then reassemble the bitmap.

Thanks a lot!
Anthony408Author Commented:
Thanks :D
you're welcome :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.