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.

http://www.codeproject.com/KB/IP/Net_Remoting.aspx

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!

-Anthony
LVL 1
Anthony408Asked:
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!
0
 
Anthony408Author Commented:
Thanks :D
0
 
CebikCommented:
you're welcome :)
0
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.