views:

310

answers:

3

Not sure whether this pertains to VS 2010 or to the upgraded framework, but... we are using the Oracle membership provider to authenticate users. Prior to the upgrade everything worked fine, but now Membership.ValidateUser(user, password) returns false despite valid credentials. There is no exception thrown, so it's hard to determine what the problem might be. The website administration tool in VS 2010 is still able to manage users and roles (more or less), so I have no reason to question connectivity. What might the problem be?

A: 
Sky Sanders
We have no problem compiling, and the problem occurs with both Oracle membership providers 2.0 and 4.0.
nw
A: 

The answer (according to this post) is to specify hashAlgorithmType="SHA1" in the Web.config:

<membership defaultProvider="OracleMembershipProvider" hashAlgorithmType="SHA1"/>

This did not solve the problem for existing users, but newly created users can log in now.

nw
I am guessing that for newly created users, adding `hashAlgorithmType` is a red herring. Try adding and authenticating a new user without it. I suspect that the problem is related to the autogenned machine key. Am writing some tests. will update answer.
Sky Sanders
The newly created users could be authenticated on another (development) box, so I think the hashAlgorithmType fixed the problem.
nw
A: 

Is your problem resolved? I am also facing the same problem. It seems that newer membership provider is using diffrent algorithm type though the previous one's was using SHA1 as default type.

Do let me know if it got resolved?

Bhawna