使用aspnet_regsql.exe生成Memebership对应的数据库

来源:互联网 发布:同城网络app 编辑:程序博客网 时间:2024/06/05 16:20

 如果想自己手动创建Memebership 对应的数据库会,可以使用 Aspnet_regsql.exe


ASP.NET SQL Server Registration Tool (Aspnet_regsql.exe)

参考http://msdn.microsoft.com/en-us/library/ms229862(v=vs.100).aspx

Aspnet_regsql.exe 可以在本机找到,位置如下:


Aspnet_regsql.exe is installed in the Microsoft.NET Framework directory. If the computer is running multiple .NET Framework versions side-by-side, multiple versions of the tool might be installed. The following table lists the locations where the tool is installed for different versions of the .NET Framework.

Version of .NET Framework

Location of Aspnet_regsql.exe file

.NET Framework version 2.0, version 3.0, and version 3.5 (32-bit systems)

%windir%\Microsoft.NET\Framework\v2.0.50727

.NET Framework version 2.0, version 3.0, and version 3.5 (64-bit systems)

%windir%\Microsoft.NET\Framework64\v2.0.50727

.NET Framework version 4 (32-bit systems)

%windir%\Microsoft.NET\Framework\v4.0.30319

.NET Framework version 4 (64-bit systems)

%windir%\Microsoft.NET\Framework64\v4.0.30319

找到Aspnet_regsql.exe,执行后出现图形界面,

参考:http://weblogs.asp.net/sukumarraju/archive/2009/10/02/installing-asp-net-membership-services-database-in-sql-server-expreess.aspx



web.config配置参考:

http://msdn.microsoft.com/en-us/library/6e9y4s5t.aspx


Memebership的使用

http://darcyz.blog.163.com/blog/static/331124762010101082012304/