CS 2007 does not respect the profile attribute requiresQuestionAndAnswer

Hi,

I see the CS 2007 UpmMemebershipProvider ignores the membership\provider attribute requiresQuestionAndAnswer. Instead it sets it by inspecting the user profile for the existence of the question and answer properties.

It took me a while to work this out. And then I found it in the docs...

ASP.NET ignores therequiresQuestionAndAnswer and

requiresUniqueEmail attributes to theadd element if you use the

Commerce Server membership provider. For information about how to modify the

user profile definition to implement this, seeHow to Enable Logons by Using

the Commerce Server Membership Provider.

I know it is a bit hardcore, but I would suggest throwing an exception if you find either of these attributes present. It would have saved me some time and I'm sure it would help others.

MrT

[937 byte] By [TheRealMrT] at [2008-2-28]
# 1

MrT,

Thank you for your suggestion. The behavior is by-design but we will take your suggestion under consideration. The attributes given to a membership provider are specific to each provider, there isn't a standard. But there is the tendency to expect those attributes to work because they show up in other providers. And because people can extend from our provider we can't just throw exceptions for any attributes we don't recognize. We decided to just ignore any attributes we didn't recognize.

Cheers,
Joe

JoeWasson-MSFT at 2007-9-4 > top of Msdn Tech,Commerce Server,Commerce Server 2007...