Groups | Blog | Home
all groups > asp.net > february 2006 >

asp.net : Fired! - - Profile-


James Woody
2/3/2006 6:56:22 PM
Our company uses the profile feature, then for some reason I screw around
with the web.config file and delete one of the profile keys.

I then re-add that profile key.

Woudn't all that profile information get lost permanently?
Then I may get fired. Correct?

Ken Cox - Microsoft MVP
2/3/2006 7:39:56 PM
Hey James,

It depends.

Did you just delete the profile key or did you tell ASP.NET to take it out
with this?

<remove name="fired" />

At any rate, the data remains in each record until the person actually goes
to a page that updates the profile. You should be able to put the key back
in with no harm done for any profiles that haven't changed.

Just put the property back in and cross your fingers.

As for firing, not sure about that one. <grin>

BTW, here's how the data is stored:

PropertyNames:
fired:S:0:4:BGColour:S:4:16:SiteLogo:S:20:9:

PropertyValuesString:
Truebackground:whitemouse.gif

You can find details for the storage format here:

http://www.xaprb.com/blog/2006/01/08/aspnet-profile-schema/

Let us know if you're okay?


[quoted text, click to view]

James Woody
2/3/2006 11:26:43 PM
Thank you!

If I am fired I will restore the personnel records to get my job back.

AddThis Social Bookmark Button