Skip to content

Profile provider not working? #11

@avalla

Description

@avalla

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions