Error in SoapFormatter after registering remoting objects

We have a application which receive Datatables over Remoting and then show the content in an UltraGrid from Infragistics. The nice feature of this Grid is that it can load and save their Display layout with the Soapformatter. From Framework Version 1.0 to 2.0 Feb CTP this works very fine but now in Beta2 after register a Remoting object with the following line:

RemotingConfiguration.RegisterActivatedClientType(typeof(rawConnection),"tcp://" + HostName +":" + 12000);

The SoapFormatter doesn′t work anymore with the following lines:

SoapFormatter f =newSoapFormatter(null,new System.Runtime.Serialization.StreamingContext())

f.AssemblyFormat = System.Runtime.Serialization.Formatters.FormatterAssemblyStyle.Full;

f.Binder =new Infragistics.Win.UltraWinGrid.Serialization.Binder();

object o = f.Deserialize(fs);

it crashes after Deserialize with the error:

System.NotSupportedException: Cannot create uninitialized instances of types requiring managed activation.chemas-microsoft-comSurprisefficeSurpriseffice" />>>

at System.Runtime.Serialization.FormatterServices.nativeGetUninitializedObject(RuntimeType type)>>

at System.Runtime.Serialization.FormatterServices.GetUninitializedObject(Type type)>>

at System.Runtime.Serialization.Formatters.Soap.ObjectReader.ParseObject(ParseRecord pr)>>

at System.Runtime.Serialization.Formatters.Soap.ObjectReader.Parse(ParseRecord pr)>>

at System.Runtime.Serialization.Formatters.Soap.SoapHandler.StartChildren()>>

at System.Runtime.Serialization.Formatters.Soap.SoapParser.ParseXml()>>

at System.Runtime.Serialization.Formatters.Soap.SoapParser.Run()>>

at System.Runtime.Serialization.Formatters.Soap.ObjectReader.Deserialize(HeaderHandler handler, ISerParser serParser)>>

at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize(Stream serializationStream, HeaderHandler handler)>>

at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize(Stream serializationStream)

When i try the SoapFormatter without do anything with Remoting all works fine still in Beta2.

I hope someone can help us.

Regards,
Gino

[5838 byte] By [MSTSE] at [2008-1-12]
# 1
I have experienced the same exect issue. Currently working to resolve. Please post here if anyone has a solution.

Thank you.

sean2078 at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Remoting and Runtime Serialization...
# 3

Are there in the meantime a fix or a workaroung known?

To configere the Remoting server does not work without using "RemotingConfiguration.Register....".
This can only be used for the client (without RemotingConfiguration).
Is this right?

THX.

Pater_Peter at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Remoting and Runtime Serialization...

.NET Development

Site Classified