Pages

Monday, January 26, 2009

ASP.NET User management

aspnet_regsql.exe file provides good UI for creating database that manages user.

Then, add

[remove name="LocalSqlServer"/]
[add name="LocalSqlServer" connectionstring="Data Source=localhost;initial catalog=DATABASE NAME;integrated security=true" providername="System.Data.SqlClient"/]



to the web.config

and
[machinekey validationkey="8BB6686402F15E8D6117143F97A42147D903E4E63C9EB9F802EB4DD95DB8CC4E512426BA1AED57D50796ADEE60CCCAC698F9618E023F4F282F226169035E01A0" decryptionkey="F15A879092272F49963E066D8D7BFE31620865C7331E5D5E" validation="SHA1"/]

near the end of web.config. Resolves some unknown bug.
P.S. replace [, ] with xml characters ..

1 comment:

  1. C:\WINDOWS\Microsoft.NET\Framework\Version

    for the location of the aspnet_regsql.exe file

    ReplyDelete