Create Profile. Going crazy ...
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hello, I am creating a new profile to a user: Dim profile As ProfileCommon = CType(ProfileCommon.Create(user.UserName, True), ProfileCommon) With profile.Contact .City = tbCity.Text .District = CType(Int32.Parse(ddlDistrict.SelectedItem.Value), Enumeration.District) End With With profile.Options .Newsletter = cbNewsletter.Checked End With profile.Save() I get the error: Type 'System.Web.Profile.ProfileBase' in Assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable. Contact and Options are classes with properties and a few methods which are defined as: _ Public Class Options ... And in my Web.Config, under profile, I have: Any idea what might be going on? Thanks, Miguel