Sign in | Join
Last post 07-20-2005 7:55 PM by JoeBerg. 2 replies.
Sort Posts: Oldest to newest Newest to oldest
[ArgumentException: Could not find a type-converter to convert object if type 'namespace.shipAddresses' to string.Parameter name: type] System.Configuration.SettingsPropertyValue.ConvertObjectToString(Object propValue, Type type, SettingsSerializeAs serializeAs, Boolean throwOnError) +636 System.Configuration.SettingsPropertyValue.SerializePropertyValue() +179 System.Configuration.SettingsPropertyValue.get_SerializedValue() +38 System.Web.Profile.ProfileModule.PrepareDataForSaving(String& allNames, String& allValues, Byte[]& buf, Boolean binarySupported, SettingsPropertyValueCollection properties, Boolean userIsAuthenticated) +1634 System.Web.Profile.ProfileModule.PrepareDataForSaving(String& allNames, String& allValues, Byte[]& buf, Boolean binarySupported, SettingsPropertyValueCollection properties, Boolean userIsAuthenticated) +0 System.Web.Profile.SqlProfileProvider.SetPropertyValues(SettingsContext sc, SettingsPropertyValueCollection properties) +251 System.Configuration.SettingsBase.SaveCore() +478 System.Configuration.SettingsBase.Save() +128 System.Web.Profile.ProfileBase.SaveWithAssert() +46 System.Web.Profile.ProfileBase.SaveWithAssert() +0 System.Web.Profile.ProfileBase.Save() +86 System.Web.Profile.ProfileModule.OnLeave(Object source, EventArgs eventArgs) +239 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +167 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +117
Is the class marked as Serialable? Eg
<Serializable()> _Public Class ShipAddresses
or
[Serializable()]public class ShipAddressesThat's all I've done for my custom shipping cart.Dave
How did you specify your TypeConverter? You can use those articles as references:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconimplementingtypeconverter.asporhttp://www.codeproject.com/aspnet/TypeConverters.asp