how to: pass a pointer to a remotable object as a parameter to a method of another remotable object?
From: assafwo (assafwo@hotmail.com)
Date: 01/29/03
- Next message: Michael: "Config error using domain user for ASP.NET worker process"
- Previous message: Maria: "Please use special MS patch for this"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "assafwo" <assafwo@hotmail.com> Date: Wed, 29 Jan 2003 14:25:08 +0200
hello,
i need to
pass a pointer to a remotable object as a parameter to
a method of another remotable object.
i obtained the pointers to the 2 remotable objects
using System.Activator.GetObject()
In the previous .Net Framework it worked fine,
in the 1.1 version i get the following exception:
"An unhandled exception of type
'System.Runtime.Serialization.SerializationException' occurred in
mscorlib.dll
Additional information: Because of security restrictions, the type
System.Runtime.Remoting.ObjRef cannot be accessed."
using the .NET Configuration 1.1, i gave the exe fullTrust.
however, this did not seem to help the situation.
i tried the following code as well:
RemotingConfiguration.ApplicationName = "Chat/Node";
BinaryServerFormatterSinkProvider provider = new
BinaryServerFormatterSinkProvider();
provider.TypeFilterLevel =
System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;
// creating the IDictionary to set the port on the channel instance.
IDictionary props = new Hashtable();
props["port"] = port;
// pass the props for the port setting and the server provider in
// the server chain argument. (Client remains null here.)
TcpChannel chan = new TcpChannel(props, null, provider);
ChannelServices.RegisterChannel( chan );
but this did not help either,
instead i got the follwing error:
"An unhandled exception of type 'System.Runtime.Remoting.RemotingException'
occurred in mscorlib.dll
Additional information: System.ArgumentNullException: No message was
deserialized prior to calling the DispatchChannelSink.
Parameter name: requestMsg
at
System.Runtime.Remoting.Channels.DispatchChannelSink.ProcessMessage(IServerC
hannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
requestHeaders, Stream requestStream, IMessage& responseMsg,
ITransportHeaders& responseHeaders, Stream& responseStream)
at
System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IS
erverChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
requestHeaders, Stream requestStream, IMessage& responseMsg,
ITransportHeaders& responseHeaders, Stream& responseStream)
at
System.Runtime.Remoting.Channels.Http.HttpServerTransportSink.ServiceRequest
(Object state)
at System.Runtime.Remoting.Channels.SocketHandler.ProcessRequestNow()"
i don't know what else to do
please help me.
please,
any and all help will be much appreciated,
assaf.
- Next message: Michael: "Config error using domain user for ASP.NET worker process"
- Previous message: Maria: "Please use special MS patch for this"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|