HighTechTalks DotNet Forums  

Can't access property of object when marshalled by ref not value..

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss Can't access property of object when marshalled by ref not value.. in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
RobertOles
 
Posts: n/a

Default Can't access property of object when marshalled by ref not value.. - 12-02-2004 , 09:09 AM






I am using IIS to host a server dll using a factory class to create objects
for me which I want to make available to the client program.

When I define my classes in the server dll with the <Serializable()>
attribute, and remove the marshalbyrefobject base class reference, the object
is created fine, and I can access its properties fine.
How ever when it does inherit from marshalByRefObject (not marked with
<Serializable()>) when I come to access one of the objects properties I get
the error:
System.Runtime.Remoting.RemotingException
"Server encountered an internal error. To get more info turn on customErrors
in the server's config file."
Now I have tried setting the customError attribute's mode to off in the
config file, but I still get this error, I have tried many different
combinations of ideas from various resources on the net, and none of them
seem to work. I think I have exhausted my options on this one.

The thing that makes me sure I don't need to concentrate on this, is, if I
run the server and client dlls on my local machine, it all works fine, it
makes no difference if the objects being created are marshal by ref or by
value. Its only when I host the server dll on a different computer that I
start to get problems.

I'm a complete novice to remoting, so any ideas would be greatly
appreciated, as i've hit a brick wall with this.

Thanks,
Rob

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.