I have setup the profile service to save a custom type to the database. The load, via Sys.Services.ProfileService.load() succeeds. However when I make a change to the loaded object and try to save it via Sys.Services.ProfileService, the custom object is not saved at all. I have stepped through the ProfileService code in System.Web.Extensions and the determined that the conversion of the Json string from the client to my custom type fails. web.config has the required type information like so
<profile defaultProvider="MyProfileProvider" enabled="true">
<providers>
<clear/>
<add name="MyProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="MyProfile" applicationName="MyApp" />
</providers>
<properties>
<clear/>
<add name="User" type="MyType, MyType" serializeAs="Binary" allowAnonymous="false" provider="MyProfileProvider" />
</properties>
</profile>
What else do I need to configure for the deserializer to figure out the required type info to convert the Json string from the client side to MyType on the server
TIA
zaphod