MongoDB.Web icon indicating copy to clipboard operation
MongoDB.Web copied to clipboard

Profile provider not working?

Open avalla opened this issue 12 years ago • 1 comments

Hello, I always receive a null reference exception when I use profile provider.

I tried custom class and web.config properties, no success. If I debug I can see in Profile object that the properties always returns a null reference exception. If I try to set a property I receive this exception:

[NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.] MongoDB.Web.Providers.MongoDBProfileProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection collection) in C:\MongoDB.Web\MongoDB.Web\Providers\MongoDBProfileProvider.cs:93 System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider) +273 System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName) +158 System.Configuration.SettingsBase.get_Item(String propertyName) +123 System.Web.Profile.ProfileBase.GetInternal(String propertyName) +36 System.Web.Profile.ProfileBase.get_Item(String propertyName) +77

The same configuration with aspnet profile provider is working fine.

avalla avatar Mar 02 '12 18:03 avalla

Same problem here, there's no "Insert" anywhere in the code, so my guess is that the profile is never created or inserted into mongodb.

steentottrup avatar Jan 07 '13 06:01 steentottrup