Hi, i am working my wa throught the C# Business Objects 2004 book and have got to the Windows UI section but after completeing it i run it and get the following error after trying to login:
An Unhandlerd exception of type 'System.Runtime.Serialization.SerializationException' occured in mscorlib.dll Additional information: BinaryFormatter Version incompatibility. Expected Veriosn 1.0. Received Version 1088737336.1684104552
What i have read is that this indicates that the format being returned is text when it should be binary. can anyone help? I have include the configuration files below incase they help.
Web.Config - Dataportal Configuration file information
<
system.runtime.remoting> <application> <service> <wellknown mode="SingleCall" objectUri="DataPortal.rem" type="CSLA.Server.DataPortal, CSLA.Server.DataPortal" /> <wellknown mode="SingleCall" objectUri="ServicedDataPortal.rem" type="CSLA.Server.ServicedDataPortal.DataPortal, CSLA.Server.ServicedDataPortal" /> </service> <channels> <channel ref="http"> <serverProviders> <provider ref="wsdl" /> <!-- --><formatter ref="soap" typeFilterLevel="Full" /> <!-- --> <!-- --><formatter ref="binary" typeFilterLevel="Full" /> <!-- --> </serverProviders> </channel> </channels> </application> </system.runtime.remoting>
App.Config - Dataportal Configuration file information
<?
xml version="1.0" encoding="utf-8" ?><
configuration> <appSettings> <add key="Authentication" value="CSLA" /> <!-- TO INTERACT DIRECTLY WITH DATBASE - UNCOMMENT<add key="DB:PTracker" value="data source=localhost;initial catalog=PTracker;user id=ptracker;password=ptracker" />
<add key="DB:Security" value="data source=localhost;initial catalog=Security;user id=ptracker;password=ptracker" />
--
> <!-- TO INTERACT WITH DATAPORTAL - UNCOMMENT --> <add key="PortalServer" value="http://localhost/DataPortal/DataPortal.rem" /> <add key="ServicedPortalServer" value="http://localhost/DataPortal/ServicedDataPortal.rem" /> <!--<add key="DefaultBatchQueueServer"
value="tcp://localhost:5050/cslabatch/batchqueue.rem" />
--
> </appSettings></
configuration>coss74:<!-- --><formatter ref="soap" typeFilterLevel="Full" /> <!-- --> <!-- --><formatter ref="binary" typeFilterLevel="Full" /> <!-- -->
If you are using .Net 1.1 or higher, I believe you need to uncomment the two formatter lines shown...
Copyright (c) Marimer LLC