[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.remoting

RE: SerializationException while accessing a remote object

JBO

8/20/2004 5:59:00 AM

The problem is that both <clientProviders> and <serverProviders> should
appear underneath <channel> and not <channels> as is the case in the config
file.

"JBO" wrote:

> I'm receiving an error message when trying to set a context control object in
> a remotely activated object. For error messages and config files see below.
> I'm running MS .NETframework 1.1
> Any help with this problem is very much appreciated.
> -----------
> Error message:
>
> 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
> -----------
> The server side config file contains:
>
> <?xml version="1.0" encoding="utf-8" ?>
> <configuration>
> <system.runtime.remoting>
> <application>
> <channels>
> <channel ref="tcp" port="49999" />
> <clientProviders>
> <formatter ref="binary" />
> </clientProviders>
> <serverProviders>
> <formatter ref="binary" typeFilterLevel="Full" />
> </serverProviders>
> </channels>
> <service>
> <activated type="BL.TMInfo, BL" />
> </service>
> </application>
> </system.runtime.remoting>
> </configuration>
> -----------
> The client side config file contains:
> <?xml version="1.0" encoding="utf-8" ?>
> <configuration>
> <system.runtime.remoting>
> <application>
> <client url="tcp://localhost:49999">
> <activated type="BL.TMInfo, BL" />
> </client>
> <channels>
> <channel ref="tcp" port="0" />
> <clientProviders>
> <formatter ref="binary" />
> </clientProviders>
> <serverProviders>
> <formatter ref="binary" typeFilterLevel="Full" />
> </serverProviders>
> </channels>
> </application>
> </system.runtime.remoting>
> </configuration>
>
> -----------
> 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.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)
1 Answer

Tell it like it is.

1/31/2009 12:45:00 AM

0

On Jan 22, 10:40 pm, "Tell it like it is."
<DanielAlbertDesfos...@yahoo.com> wrote:
> On Jan 18, 8:39 pm, Simple Simon <pi.r.cu...@gmail.com> wrote:
>
>
>
>
>
> > I’m sorry that it injures you so that Israel is so very successful.
> > What you are obviously much too stupid to understand is that you only
> > contribute to her prosperity by exhibiting all to well that her
> > enemies’ souls are mutilated by an evil hatred.
>
> > You are much too blinded by your soul-mutilated hatred to see that
> > every time that you disparage and slander Jews and Israel, it only
> > serves to make Israel even more sympathetic than it already is. Of
> > course I wouldn’t point this out to you if I thought that you were in
> > control of your actions and that you were able to stop. I understand
> > that this serves as a momentary catharsis for you that soothes your
> > inner demons.
>
> > I encourage you to keep venting your spleen in this manner.
> > With enemies like you, Israel’s continued prosperity is assured.
>
> > Thank goodness for Israel. May she continue to prevail over the
> > satanic behavior of her enemies and the vicious slander of her
> > detractors.
>
> > :)
>
>                                       Israel is a holy name. A secular
> jewish stste calling itself Israel has a responsibility not to soil
> that holy name. Without us Americans there is no Israel.- Hide quoted text -
>
> - Show quoted text -