I'm trying to use a design I had working in the previous release version of
.net which remoted events from the server to the client using the Observer
pattern, Attach, Deattach on the remoted object.
In v1.1 I'm getting a System.Runtime.Serialization.SerializationException
which seems to be originating in the method
System.Runtime.Serialization.FormatterServices.GetSafeUninitializedObject.
The documention for this class claims it is supported only in version 1.1 of
the .NET Framework.
Am I missign something here, or is this a possible bug in the Final Beta
version.
TIA.
StackTrace "\nServer stack trace: \n at
System.Runtime.Serialization.FormatterServices.GetSafeUninitializedObject(Ty
pe type)\r\n at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ParseObject(Pars
eRecord pr)\r\n at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Parse(ParseRecor
d pr)\r\n at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWith
MapTyped(BinaryObjectWithMapTyped record)\r\n at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWith
MapTyped(BinaryHeaderEnum binaryHeaderEnum)\r\n at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()\r\n at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(Head
erHandler handler, __BinaryParser serParser, Boolean fCheck,
IMethodCallMessage methodCallMessage)\r\n at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(S
tream serializationStream, HeaderHandler handler, Boolean fCheck,
IMethodCallMessage methodCallMessage)\r\n at
System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMessage
(String objectUri, Stream inputStream, Boolean bStrictBinding,
TypeFilterLevel securityLevel)\r\n at
System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IS
erverChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
requestHeaders, Stream requestStream, IMessage& responseMsg,
ITransportHeaders& responseHeaders, Stream& responseStream)\n\nException
rethrown at [0]: \n at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)\r\n at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)\r\n at
CIBC.CPM.DataInfrastructure.Remoting.IRemoteObserver.Attach(IRemoteSink
sink)\r\n at DIRemoter_Test.MainClass.Main(String[] args) in
e:\\zoser\\code\\dot_net\\di remoting\\diremoter_test\\main.cs:line 47"
string
Information in this message reflects current market conditions and is subject to
change without notice.
It is believed to be reliable, but is not guaranteed for accuracy or completeness.
Details provided do
not supersede your normal trade confirmations or statements. Any product is subject to
prior sale.
CIBC World Markets Corp, its affiliated companies, and their officers or employees,
may have a position
in or make a market in any security described above, and may act as an investment
banker or advisor to such.
Although CIBC World Markets Corp. is an indirect, wholly owned subsidiary of Canadian
Imperial Bank of Commerce ("CIBC"),
it is solely responsible for its contractual obligations. Any securities products
recommended, purchased, or sold in
any client accounts
(i) will not be insured by the FDIC,
(ii)will not be deposits or obligations of CIBC,
(iii) will not be endorsed or guaranteed by CIBC, and
(iv) will be subject to risks, including possible loss of principal invested.