Pesquisa

domingo, 3 de outubro de 2010

The 'System.Web.Security.SqlMembershipProvider' requires a database schema compatible with schema version '1'

 

A Exception The 'System.Web.Security.SqlMembershipProvider' requires a database schema compatible with schema version '1'.  However, the current database schema is not compatible with this version.  You may need to either install a compatible schema with aspnet_regsql.exe (available in the framework installation directory), or upgrade the provider to a newer version. ocorre quando a tabela aspnet_SchemaVersions não contém a versão do MembershipProvider.

Para inserir os registros na tabela aspnet_SchemaVersions segue abaixo o script:

insert into aspnet_SchemaVersions values('common', 1, 1)
insert into aspnet_SchemaVersions values('health monitoring', 1, 1)
insert into aspnet_SchemaVersions values('membership', 1, 1)
insert into aspnet_SchemaVersions values('personalization', 1, 1)
insert into aspnet_SchemaVersions values('profile', 1, 1)
insert into aspnet_SchemaVersions values('role manager', 1, 1)



Um comentário:

  1. Sim, resolveu o problema. Obrigado por postar essa solução!

    ResponderExcluir