Solved

C# Remoting Error While Sending Bitmap

Posted on 2009-05-08
4
580 Views
Last Modified: 2013-12-17
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
Comment
Question by:Anthony408
  • 2
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
Cebik earned 500 total points
ID: 24341267
0
 
LVL 1

Author Comment

by:Anthony408
ID: 24341866
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
 
LVL 1

Author Closing Comment

by:Anthony408
ID: 31579678
Thanks :D
0
 
LVL 6

Expert Comment

by:Cebik
ID: 24345987
you're welcome :)
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question