I have a strange problem with the profile provider. I can create a profile and save it, but when I recall the profile, it does not return any of the new data.
Code: Select all
ProfileCommon aProfile = (ProfileCommon)ProfileCommon.Create(UserName, true);
aProfile.Test = "Test OK!";
aProfile.Save();
string aTest = Profile.GetProfile(UserName).Test; // aTest will not be "Test OK!"!
I can see the correct data in the aspnet_profiles data (it's got 00 bytes in between the text bytes, I assume that's how it is supposed to be stored), but it is apparantly not being read correctly.
I hope you can help. Thanks!
Luc