简体   繁体   English

成员资格数据库不适用于IIS 6

[英]Membership databae Doesn't Work With IIS 6

I have a membership database created through the wizard of aspnet_regsql and used in an ASP.NET application that has a login control 我有一个成员数据库,该成员数据库是通过aspnet_regsql向导创建的,并在具有登录控件的ASP.NET应用程序中使用

the login control was working just fine on IIS Express but once I deployed it on local IIS it kept displaying the error message 登录控件在IIS Express上运行正常,但是一旦将其部署在本地IIS上,它就会继续显示错误消息

Your login attempt was not successful. 您的登录尝试失败。 Please try again. 请再试一次。

I'm sure I gave the right user name and password and that IIS can connect to the database 我确定输入了正确的用户名和密码,并且IIS可以连接到数据库

If PasswordFormat is stored as Encrypted, Membership Provider's encryption mechanism uses machine key. 如果PasswordFormat以加密形式存储,则成员资格提供者的加密机制将使用机器密钥。

Even if you use Hashed, rule of thumb is to include Machine Key in web.config. 即使您使用Hashed,经验法则是在web.config中包含Machine Key

Note: there is an updated version of ASP.Net Membership Provider called ASP.NET Universal Providers . 注意:有一个称为ASP.NET Universal Providers的ASP.Net Membership Provider的更新版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM