Problem with Profile Provider and ASP.NET MVC
Added by Tekno tekno over 1 year ago
Hi !!
Nice project.
I'm trying to use profile provider with .NET MVC. I'm pretty sure that MVC have nothing related to the problem. I have a website with one private control part and one public part. In the control part, I can use with no problem membership, role, and profile providers with a logged user. But in the public part if I try to use profile provider with anonymous user, and when I try to save profile, I get an exception (Operation aborted due to an exception (see Trace for details).)
This is part of the stack:
[ProviderException: Operation aborted due to an exception (see Trace for details).]
NauckIT.PostgreSQLProvider.PgProfileProvider.CreateProfileForUser(String username, Boolean isAuthenticated) +1434
NauckIT.PostgreSQLProvider.PgProfileProvider.SetPropertyValues(SettingsContext context, SettingsPropertyValueCollection collection) +337
System.Configuration.SettingsBase.SaveCore() +478
System.Configuration.SettingsBase.Save() +88
System.Web.Profile.ProfileBase.SaveWithAssert() +42
System.Web.Profile.ProfileBase.Save() +122
...
]
I cannot debug so breakpoints tell me that no symbols loaded in order to see what problem I have, or a proper solution... Could you give me some light about this problem. I'm searching help for long time and I did'nt find nothing at all!!!
Thanks in advance !!!!!
Replies
RE: Problem with Profile Provider and ASP.NET MVC
-
Added by Tekno tekno over 1 year ago
I Discovered the error is this:
ERROR: 23503: insert or update on table "Profiles" violates foreign key 'profiles_username_fkey "
But the profile is needed with anonymous user, so there can't be ANY user, not to prevent rule violation
RE: Problem with Profile Provider and ASP.NET MVC
-
Added by Daniel Nauck over 1 year ago
Hello,
this is a know limitation of this provider at this time. It does not support profiles for anonymous users.
I'll see how i can implement your requested feature.
Maybe you can open a new feature request in our Feature tracker? Thanks.