Solved

C# Remoting Error While Sending Bitmap

Posted on 2009-05-08
4
573 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now