Membership.ValidateUser始终升级之后就返回false,VS 2010 / .NET 4.0 [英] Membership.ValidateUser always returns false after upgrade to VS 2010 / .NET 4.0

查看:89
本文介绍了Membership.ValidateUser始终升级之后就返回false,VS 2010 / .NET 4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知道这是否属于VS 2010或升级的框架,但......我们使用Oracle成员资格提供程序验证用户身份。在升级之前一切运行良好,但现在 Membership.ValidateUser(用户名,密码)收益尽管有效凭证。有没有例外抛出,所以很难确定问题可能是什么。在VS 2010中的网站管理工具仍然能够管理用户和角色(或多或少),所以我没有理由怀疑连接。可能是什么问题呢?

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?

推荐答案

答案(按照这个帖子)是指定 hashAlgorithmType =SHA1在Web.config:

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.

这篇关于Membership.ValidateUser始终升级之后就返回false,VS 2010 / .NET 4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆