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 / Remoting / January 2004

Tip: Looking for answers? Try searching our database.

Passing Type to remote object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Greg Bacchus - 09 Jan 2004 08:52 GMT
Hi,
I'm trying to pass a Type object as the parameter to a method on a remoted
object.
If the Type is the type of a base object (say typeof( int ) ) it all works
fine, but if its say typeof( MyClass ) I get the exception:

'System.Runtime.Serialization.SerializationException' occurred in
mscorlib.dll

Additional information: Insufficient state to deserialize the object.  More
information is needed.

Anyone know what's going on here??

Cheers,
Greg
jay - 09 Jan 2004 20:26 GMT
Did you try Serialize attribute to the class.
so that it will not give the exception.

>-----Original Message-----
>Hi,
[quoted text clipped - 15 lines]
>
>.
Greg Bacchus - 10 Jan 2004 01:46 GMT
I can Serialise the class itself, I can even serialise and deserialise the
typeof( MyClass ) using a normal formatter. But its when I try to send
typeof( MyClass ) as a parameter to a method on a remoted object that I get
the error.

Greg

> Did you try Serialize attribute to the class.
> so that it will not give the exception.
[quoted text clipped - 23 lines]
> >
> >.
Greg Bacchus - 10 Jan 2004 02:04 GMT
Oops... sorry my dumb!!
I forgot to include the class in the host application. Doh!
Greg

> I can Serialise the class itself, I can even serialise and deserialise the
> typeof( MyClass ) using a normal formatter. But its when I try to send
[quoted text clipped - 30 lines]
> > >
> > >.

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.