Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / August 2003

Tip: Looking for answers? Try searching our database.

System.Runtime.Serialization.SerializationException

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
chris - 30 Aug 2003 09:37 GMT
Hi there,
I get a

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

exception when I try to the object from the client to the
server.

I create my Client like this:

tcc = new TcpClientChannel();
ChannelServices.RegisterChannel(tcc);
remoteInterface = (IRemoteServer.RemoteInterface)
Activator.GetObject(typeof
(IRemoteServer.RemoteInterface), "tcp://localhost:8000/Rem
oteClass");

The server is created like this

hts = new TcpServerChannel(8000);
ChannelServices.RegisterChannel(hts);
RemotingConfiguration.RegisterWellKnownServiceType(typeof
(BankDetailsClassLibrary), "RemoteClass",
WellKnownObjectMode.Singleton);

It works until I try to pass the object from client to
server. Is there a workaround?

Thanks a lot

Chris
Kumar Gaurav Khanna [.NET MVP] - 31 Aug 2003 20:44 GMT
Hi!

The object that you are trying to pass from the client to the server, is it
implemented in the client, and marked serializable?

For you to pass it to the server, the above two conditions must hold true.

Signature

Regards,
Gaurav Khanna
----------------------------------------------------------------------------
----------------
Microsoft MVP - .NET, MCSE Windows 2000/NT4, MCP+I
WinToolZone - Spelunking Microsoft Technologies
http://www.wintoolzone.com/

> Hi there,
> I get a
[quoted text clipped - 29 lines]
>
> Chris

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.