.net ';System.Web.Security.SqlMembershipProvider';需要与架构版本';兼容的数据库架构;1';
我想使用概要文件,并且能够使用aspent_regsql-A p来安装表。我可以在整个SQL management studio中看到它们 我实际上使用的是SQLExpress 2005,我的dbo.aspnet_SchemaVersions已填充。有人知道会出什么问题吗 顺便说一下,我很确定我的连接字符串和应用程序代码都是正确的。 提前谢谢.net ';System.Web.Security.SqlMembershipProvider';需要与架构版本';兼容的数据库架构;1';,.net,sql-server,sql-server-2005-express,profiles,.net,Sql Server,Sql Server 2005 Express,Profiles,我想使用概要文件,并且能够使用aspent_regsql-A p来安装表。我可以在整个SQL management studio中看到它们 我实际上使用的是SQLExpress 2005,我的dbo.aspnet_SchemaVersions已填充。有人知道会出什么问题吗 顺便说一下,我很确定我的连接字符串和应用程序代码都是正确的。 提前谢谢 好吧,我的傻瓜。我很确定SQLExpress数据库有问题,但实际上是我的web.config文件太奇怪了。通过向提供程序添加正确的属性,我实现了这一
好吧,我的傻瓜。我很确定SQLExpress数据库有问题,但实际上是我的
web.config
文件太奇怪了。通过向提供程序添加正确的属性,我实现了这一点:
<connectionStrings>
<add name="RGConnectionString"
connectionString="Data Source=(local)\SQLExpress;Initial Catalog=aspnetdb;Integrated Security=true"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<membership>
<providers>
<remove name="AspNetSqlMembershipProvider" />
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="RGConnectionString"
enablePasswordRetrieval="true"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="true"
passwordFormat="Clear"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="8"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""
applicationName="/" />
</providers>
</membership>
<profile>
<providers>
<add name="ProfileProvider"
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="RGConnectionString"
applicationName="/" />
</providers>
</profile>
</system.web>
好吧,我的傻瓜。我很确定SQLExpress数据库有问题,但实际上是我的
web.config
文件太奇怪了。通过向提供程序添加正确的属性,我实现了这一点:
<connectionStrings>
<add name="RGConnectionString"
connectionString="Data Source=(local)\SQLExpress;Initial Catalog=aspnetdb;Integrated Security=true"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<membership>
<providers>
<remove name="AspNetSqlMembershipProvider" />
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="RGConnectionString"
enablePasswordRetrieval="true"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="true"
passwordFormat="Clear"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="8"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""
applicationName="/" />
</providers>
</membership>
<profile>
<providers>
<add name="ProfileProvider"
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="RGConnectionString"
applicationName="/" />
</providers>
</profile>
</system.web>
如果为数据库编写脚本,而不填充[aspnet\u SchemaVersions]表,则可能会发生这种情况。此表包含有关成员资格表架构的信息。如果此表为空,您将看到有关成员资格版本的错误。如果您为数据库编写脚本,而不填充[aspnet\u SchemaVersions]表,则可能会发生这种情况。此表包含有关成员资格表架构的信息。如果此表为空,您将看到有关成员资格版本的错误。检查此链接检查此链接