miércoles, 23 de julio de 2008 20:33
elbruno
[ASP.NET] Error: The 'System.Web.Security.SqlRoleProvider' requires a database schema compatible with schema version '1'.

Buenas
para rematar un día que comenzó con el pie izquierdo, al momento de hacer unas demos sobre unos componentes de Enterprise Library; me encuentro con el siguiente error:
---------------------------
Application Error
---------------------------
The 'System.Web.Security.SqlRoleProvider' 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.This QuickStart requires a database configured with the ASP.NET services schema. Please make sure the database has been initialized using the aspnet_regsql.exe script, and that the QuickStart's app.config file contains the correct database connection string.
---------------------------
OK
---------------------------
Parece que mi base de datos de Membership ha decido involucionar hasta un estado prehistórico. He estado leyendo un poco al respecto y no he encontrado una respuesta que me cierre completamente, pero a falta de una respuesta siempre viene bien la solución:
1. Lanzar la herramienta de configuración para las bases de datos de Membership [C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe]
2. Seguir con el asistente y seleccionar la opción “Configure SQL Server for application services”
3. Seleccionar el servidor y la base de datos que queremos configurar/actualizar; en este caso aspnetdb
4. Seleccionamos siguiente para confirmar los cambios
5. Listo.
La base de datos ha sido actualizada y ya podemos trabajar normalmente.
Saludos @ Here
El Bruno
Crossposting from
El Bruno