PDA

View Full Version : سوال: خطای web.config برای SqlMembershipProvider



saadi2
چهارشنبه 19 مرداد 1390, 00:43 صبح
سلام من به وسیله ی aspnet_regsql.exe جداول و پروسیجر های مورد نیاز Membership را در دیتابیسم ایجاد میکنم.
بعد از دیتابیس یک اسکریپت میگیرم و به وسیله ی ریموت به دیتابیس هاست متصل میشم و این اسکریپت را با موفقیت اجرا میکنم. و این تیبل ها در هاست ایجاد میشه.
اما موقع ثبت نام کاربر یا لاگین این ارور رو میده لطفا راهنمایی کنید







Server Error in '/' Application.
--------------------------------------------------------------------------------
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.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Configuration.Provider.ProviderException: 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.

orca13
یک شنبه 07 آبان 1391, 12:22 عصر
منم همین مشکل رو دارم، کسی میتونه کمک کنه؟

PhoenixNet
سه شنبه 09 آبان 1391, 00:25 صبح
سلام

چون ایجاد جداول باید با ترتیب خاصی بر روی هاست ایجاد شود لذا اسکریپتی که بعد از ایجاد جداول از دیتابیس می گیرید درست کار نخواهند کرد.

راه اول :

از دیتابیس بک آپ گرفته و بر روی هاست ریستور کنید.

راه دوم :

از اسکریپت ها که در پوشه C:\Windows\Microsoft.NET\Framework\v4.0.30319 با نام های :

InstallMembership.sql
InstallProfile.SQL
InstallRoles.sql
InstallWebEventSqlProvider.sql

استفاده کنید.