Salve a tutti !!
dopo enormi sforzi sono riuscito a convertire parte del mio sito in una web application.
Sono riuscito a ricrearmi un classe profile utilizzando WebProfileBuilder ma non riesco più ad accedere ai dati che prima gestivo con la proprietà group (o almeno questo penso sia il mio problema)
Vecchia gestione profile
<profile ...
<properties>
<group name="Forum">
<add name="Posts" type="Int32"/>
<add name="AvatarUrl" type="String"/> ...
Nuova gestione
namespace LP.leonardop
{ public class ProfileCommon
{
......
......
public virtual Int32 Posts
{
get
{
return ((Int32)(this.GetPropertyValue("Posts")));
}
set
{
this.SetPropertyValue("Posts", value);
}
}
public virtual string AvatarUrl
{
get
{
return ((string)(this.GetPropertyValue("AvatarUrl")));
}
set
{
this.SetPropertyValue("AvatarUrl", value);
}
}
accedendo ad una di queste proprietà viene generata un'eccezione
settingspropertynotfoundexception
su getpropertyvalue
mi rendo conto di non essere stato chiarissimo ma non saperi come spiegarmi meglio..