Hi,
I'm using remoting in .Net
I'm getting the following exception message during deserialization...
"Because of security restrictions, the type XXX cannot be accessed..."
Here is the Stack Trace:
Server stack trace: at System.Runtime.Serialization.FormatterServices.GetSafeUninitializedObject(Type type) at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ParseObject(ParseRecord pr) at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Parse(ParseRecord pr) at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record) at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum) at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run() at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMessage methodCallMessage) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, IMethodCallMessage methodCallMessage) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.UnsafeDeserialize(Stream serializationStream, HeaderHandler handler) at System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMessage(String objectUri, Stream inputStream, Boolean bStrictBinding, TypeFilterLevel securityLevel) at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at ABCD.RemoteFacade.IRemoteDownload.GetService(DownloadRequestParameters downloadRequest) at ABCD.btnRemoting_Click(Object sender, EventArgs e) in d:\ownership\src\web.ui\equitylookuptview.ascx.cs:line 256
I tried setting typeFilterLevel="Full" in the code, but still it I get the same exception.
Where am I going wrong... Please help.
Thanks in advance..
Regards,
livehed

Help required on remoting
hackwrench
The typeFilterLevel setting is somehow not getting set in ur case.
Read through this.
I recommend you try the config file, if you are currently doing it programmatically and see if it works.
Regards,
Vikram