Error: "Requested value 'System.Runtime.Serialization.Formatters.Binary.BinaryFormatter' was not found."

Error: "Requested value 'System.Runtime.Serialization.Formatters.Binary.BinaryFormatter' was not found."

Old forum URL: forums.lhotka.net/forums/t/5049.aspx


tlm3229 posted on Wednesday, July 02, 2008

Hi,

I get this error when attempting to perform a Save() operation on my XP Professional Box.  CSLA version is 3.5.1.080610.  The same website code running with the same CSLA version on my Win Server 2003 box does not get this error message when performing the same task.  Any ideas as to what could be causing this?  I've investigated permissions, but that doesn't seem to help.

Here is the full error stack:


-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
"Requested value 'System.Runtime.Serialization.Formatters.Binary.BinaryFormatter' was not found."
    [System.ArgumentException]: {"Requested value 'System.Runtime.Serialization.Formatters.Binary.BinaryFormatter' was not found."}
    Data: {System.Collections.ListDictionaryInternal}
    HelpLink: null
    InnerException: null
    Message: "Requested value 'System.Runtime.Serialization.Formatters.Binary.BinaryFormatter' was not found."
    Source: "mscorlib"
    StackTrace: "   at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
    at System.Enum.Parse(Type enumType, String value)
    at Csla.ApplicationContext.get_SerializationFormatter() in C:\\download\\CSLA\\CSLACS-3.5.1.080610\\cslacs\\Csla\\ApplicationContext.cs:line 414
    at Csla.Serialization.SerializationFormatterFactory.GetFormatter() in C:\\download\\CSLA\\CSLACS-3.5.1.080610\\cslacs\\Csla\\Serialization\\SerializationFormatterFactory.cs:line 17
    at Csla.Core.ObjectCloner.Clone(Object obj) in C:\\download\\CSLA\\CSLACS-3.5.1.080610\\cslacs\\Csla\\Core\\ObjectCloner.cs:line 33
    at Csla.Core.BusinessBase.GetClone() in C:\\download\\CSLA\\CSLACS-3.5.1.080610\\cslacs\\Csla\\Core\\BusinessBase.cs:line 1104
    at Csla.Core.BusinessBase.System.ICloneable.Clone() in C:\\download\\CSLA\\CSLACS-3.5.1.080610\\cslacs\\Csla\\Core\\BusinessBase.cs:line 1092
    at Csla.DataPortal.Update(Object obj) in C:\\download\\CSLA\\CSLACS-3.5.1.080610\\cslacs\\Csla\\DataPortal\\Client\\
DataPortal.cs:line 435
    at Csla.DataPortal.Update[T](T obj) in C:\\download\\CSLA\\CSLACS-3.5.1.080610\\cslacs\\Csla\\DataPortal\\Client\\DataPortal.cs:line 322
    at Csla.BusinessBase`1.Save() in C:\\download\\CSLA\\CSLACS-3.5.1.080610\\cslacs\\Csla\\BusinessBase.cs:line 119
    at SoniXtream.inventory.Inventory.Save() in c:\\be\\sonixtream\\solon.net\\App_Code\\media\\Inventory\\Inventory.cs:line 132
    at InventoryService.SaveInventoryList(String xml) in c:\\be\\sonixtream\\solon.net\\App_Code\\services\\InventoryService\\InventoryService.cs:line 63"
    TargetSite: {System.Object Parse(System.Type, System.String, Boolean)}
-------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------------

Thanks,

Tim


tlm3229 replied on Wednesday, July 02, 2008


Nevermind, I figured it out.  The following tag was in my web.config file.  I removed it, and now it works; don't really remember why I put that there ;-)


<add key="CslaSerializationFormatter" value="System.Runtime.Serialization.Formatters.Binary.BinaryFormatter" />




Tim

Copyright (c) Marimer LLC