freshlogic/MongoDB.Web — Issue #11: Profile provider not working?
Author: avalla
Created: 2012-03-02 18:17:45+00:00
State: open

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.