Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 597
  • Last Modified:

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
0
Anthony408
Asked:
Anthony408
  • 2
  • 2
1 Solution
 
CebikCommented:
0
 
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

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now