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
"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.
|Thread Tools||Search this Thread|