Ken Kolda
9/10/2004 3:13:00 PM
Whoops -- of course, that should have been:
<formatter ref="binary"/>
Ken
"Ken Kolda" <ken.kolda@elliemae-nospamplease.com> wrote in message
news:Oc2lzb0lEHA.896@TK2MSFTNGP12.phx.gbl...
> This problem is occurring because your server is using the SoapFormatter
and
> your client is using the BinaryFormatter. Change your server's config file
> to
>
> <channel ref="http">
> <serverProviders>
> <formatter ref="soap"/>
> </serverProvides>
> </channel>
>
> Ken
>
>
> "Lord2702" <Lord2702@MSN.com> wrote in message
> news:uhU0jtrlEHA.3968@TK2MSFTNGP11.phx.gbl...
> > Thu. Sep. 09, 2004 3:10 PM PT
> >
> > I try to host my MBRO on IIS Version 5.1, on WindowsXP Prof. and I get
the
> > following exception. I also included my server web.config and client
> > configuration code. Anybody knows how to get rid off this exception ?
> >
> > Thanks,
> >
> > Server Config File: <web.config>---------- start ----------
> > <system.runtime.remoting>
> > <application>
> > <service>
> > <wellknown
> > mode="SingleCall" objectUri="NWind.rem"
> > type="CSDemo.NWind, NWind"/>
> > </service>
> > <channels>
> > <channel ref="http"/>
> > </channels>
> > </application>
> > <debug loadTypes="true" />
> > </system.runtime.remoting>
> >
> > Server Config File: <web.config>---------- end ----------
> >
> > Client Configuration ------------------- Start ------------------------
> >
> > IChannel* channel = NULL;
> > BinaryClientFormatterSinkProvider *provClient = new
> > BinaryClientFormatterSinkProvider();
> > IDictionary *props = new Hashtable();
> > props->Item[S"port"] = __box(0);
> >
> > channel = new HttpClientChannel(props, provClient);
> > ChannelServices::RegisterChannel(channel);
> >
> > //get the object reference
> > m_NWind = RTryCast(INWind, Activator::GetObject(
> > __typeof(INWind), "http://localhost:80/NWind.rem"));
> >
> > props = ChannelServices::GetChannelSinkProperties(m_NWind);
> > props->Item[S"credentials"] =
> > System::Net::CredentialCache::DefaultCredentials;
> >
> > Client Configuration ------------------- End ------------------------
> >
> > ---Start---------------- Exception Info ----------: 9/9/2004 2:48:23 PM
> > Exception = System.Runtime.Serialization.SerializationException
> > Message = BinaryFormatter Version incompatibility. Expected Version
1.0.
> > Received Version 1835627630.1699884645.
> > Description = System.Runtime.Serialization.SerializationException:
> > BinaryFormatter Version incompatibility. Expected Version 1.0. Received
> > Version 1835627630.1699884645.
> > Server stack trace: at
> >
>
System.Runtime.Serialization.Formatters.Binary.SerializationHeaderRecord.Rea
> > d(__BinaryParser input)
> > at
> >
>
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadSerializat
> > ionHeaderRecord()
> > at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
> > at
> >
>
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(Head
> > erHandler handler, __BinaryParser serParser, Boolean fCheck,
> > IMethodCallMessage methodCallMessage)
> > at
> >
>
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(S
> > tream serializationStream, HeaderHandler handler, Boolean fCheck,
> > IMethodCallMessage methodCallMessage)
> > at
> >
>
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.UnsafeDeseria
> > lizeMethodResponse(Stream serializationStream, HeaderHandler handler,
> > IMethodCallMessage methodCallMessage)
> > at
> >
>
System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryResponseMessag
> > e(Stream inputStream, IMethodCallMessage reqMsg, Boolean bStrictBinding)
> > at
> >
>
System.Runtime.Remoting.Channels.BinaryClientFormatterSink.DeserializeMessag
> > e(IMethodCallMessage mcm, ITransportHeaders headers, Stream stream)
> > at
> >
>
System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessag
> > e(IMessage msg)
> >
> > 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 CSDemo.INWind.GetConnectionString()
> > at CSDemo.CSDemoApp.CheckBusinessObject() in
> > c:\projects\vsnet\mvc\csdemo\csdemoclient\csdemoapp.h:line 155
> > at CSDemo.CSDemoMainForm.CSDemoMainForm_Load(Object sender, EventArgs
> e)
> > in c:\projects\vsnet\mvc\csdemo\csdemoclient\csdemomainform.h:line 285
> > at System.Windows.Forms.Form.OnLoad(EventArgs e)
> > at System.Windows.Forms.Form.OnCreateControl()
> > at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
> > at System.Windows.Forms.Control.CreateControl()
> > at System.Windows.Forms.Control.WmShowWindow(Message& m)
> > at System.Windows.Forms.Control.WndProc(Message& m)
> > at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
> > at System.Windows.Forms.ContainerControl.WndProc(Message& m)
> > at System.Windows.Forms.Form.WmShowWindow(Message& m)
> > at System.Windows.Forms.Form.WndProc(Message& m)
> > at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
> > at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
> > at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd,
> > Int32 msg, IntPtr wparam, IntPtr lparam)
> > at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef
hWnd,
> > Int32 msg, Int32 wParam, Int32 lParam)
> > at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
> > at System.Windows.Forms.Control.set_Visible(Boolean value)
> > at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32
reason,
> > ApplicationContext context)
> > at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
> > ApplicationContext context)
> > at System.Windows.Forms.Application.Run(ApplicationContext context)
> > at CSDemo.CSDemoApp.Run() in
> > c:\projects\vsnet\mvc\csdemo\csdemoclient\csdemoapp.h:line 102
> > at CSDemo.CSDemoApp.Run(ApplicationContext context) in
> > c:\projects\vsnet\mvc\csdemo\csdemoclient\csdemoapp.h:line 108
> > at WinMain(HINSTANCE__* hInstance, HINSTANCE__* hPrevInstance, SByte*
> > lpCmdLine, Int32 nCmdShow) in
> > c:\projects\vsnet\mvc\csdemo\csdemoclient\winappmain.cpp:line 16
> >
> > CLR Version = 1.1.4322.573
> > OS Version = Microsoft Windows NT 5.1.2600.0
> > ---End------------------------ Exception Info ----------
> >
> >
> >
>
>