检测到不安全的密码格式.包含不安全密码格式的成员资格提供程序为:MySQLMembershipProvider.过时的密码格式为:清除. [英] Unsecured Passwords Format Detected. The Membership Provider that contains the unsecure passwords format is: MySQLMembershipProvider. The obsoleted password format is: Clear.

查看:166
本文介绍了检测到不安全的密码格式.包含不安全密码格式的成员资格提供程序为:MySQLMembershipProvider.过时的密码格式为:清除.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Entity Framework的ASP.Net MVC站点,该站点在我的本地PC上运行良好.但是,当我将其上传到Azure Web App并运行时,出现以下错误:

I have an ASP.Net MVC site using Entity Framework which is running fine on my local PC. But when I upload it on Azure Web App and run, I get following error:

检测到不安全的密码格式.包含不安全密码格式的成员资格提供程序为:MySQLMembershipProvider.过时的密码格式为:清除.

问题是我根本没有使用MySQL数据库.我在此MVC应用程序中使用的数据库是SQL Server 2014.

Problem is I am not using MySQL database at all. The database I am using in this MVC application is SQL Server 2014.

以下是我的本地PC上的连接字符串:

Following is the connection string on my local PC:

<add name="MyEntities" connectionString="metadata=res://*/DAL.MyDB.csdl|res://*/DAL.MyDB.ssdl|res://*/DAL.MyDB.msl;

提供者= System.Data.SqlClient;提供程序连接字符串=&数据源= .;初始目录= MyDB;

provider=System.Data.SqlClient;provider connection string=&quot;data source=.;initial catalog=MyDB;

集成安全性= True; multipleactiveresultsets = True;应用程序名称= EntityFramework"

integrated security=True;multipleactiveresultsets=True;application name=EntityFramework&quot;"

providerName ="System.Data.EntityClient"; />

providerName="System.Data.EntityClient" />

以下是Azure上的连接字符串:

And following is the connection string on Azure:

<add name="MyEntities" connectionString="metadata=res://*/DAL.MyDB.csdl|res://*/DAL.MyDB.ssdl|res://*/DAL.MyDB.msl;

提供者= System.Data.SqlClient;提供程序连接字符串=&数据源= mydb.database.windows.net;

provider=System.Data.SqlClient;provider connection string=&quot;data source=mydb.database.windows.net;

用户ID = mydb_admin;密码= M3 @#0l1Mk%uDc;初始目录= MyDB;集成安全性= True;

User ID=mydb_admin;Password=M3@#0l1Mk%uDc;initial catalog=MyDB;integrated security=True;

multipleactiveresultsets = True;应用程序名称= EntityFramework&" providerName ="System.Data.EntityClient"; />

multipleactiveresultsets=True;application name=EntityFramework&quot;" providerName="System.Data.EntityClient" />

如您所见,两个字符串中的区别仅在于SOURCE,USER和PASSWORD之间.您应该注意的一件事是,由于我使用的是Azure DB或SQL DB(即所谓的SQL DB),因此Azure上没有SQL Server 2014.可能是由于这个原因吗?

As you can see the difference is only between SOURCE, USER and PASSWORD in both strings. One thing you should note is that there is no SQL Server 2014 on Azure as I am using Azure DB or SQL DB (what ever it is called). Could it be due to this?

如何解决此问题?

推荐答案

我刚刚更改了

集成安全性= True

集成安全性= False

它解决了这个问题.


这篇关于检测到不安全的密码格式.包含不安全密码格式的成员资格提供程序为:MySQLMembershipProvider.过时的密码格式为:清除.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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