Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profile provider not working? #11

Open
avalla opened this issue Mar 2, 2012 · 1 comment
Open

Profile provider not working? #11

avalla opened this issue Mar 2, 2012 · 1 comment

Comments

@avalla
Copy link

avalla commented Mar 2, 2012

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.

@steentottrup
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants