2. 新增登入帳號 IIS POOL\DefaultAppPool (server->安全性 右鍵新增->登入),
並在使用者對應 勾選 aspnetdb 使用者選 IIS POOL\DefaultAppPool
3.利用 aspnet_regsql.exe (在 C:\Windows\Microsoft.NET\Framework64\v2.0.50727\)將 asp.net基本的資料庫物件 新增到 aspnetdb裡面
4. 利用vs 修改web應用程式的資料庫來源
connectionStrings>
<
remove name="LocalSqlServer">
<
add name="LocalSqlServer" connectionstring="Data Source=servername\SQLEXPRESS;Initial Catalog=aspnetdb;Integrated Security=True" providername="System.Data.SqlClient">
5.設定表單驗證
<
authentication mode="Forms">
<
system.web>
<
forms loginurl="Login.aspx" name=".ASPXFORMSAUTH">
<
authentication mode="Forms">
<
form loginurl="Login.aspx" name=".ASPXFORMSAUTH">
<
authentication>
<
deny users="?" />
----------------------------------------------------------------------------------------------
參考
http://1-800-magic.blogspot.com/2009/05/free-web-development-tools-for.html
設定MS SQL server 權限(整套free 網站開發 server安裝步驟)
http://aspalliance.com/743_Custom_FormBased_Authentication_in_ASPNET.2
設定asp.net預設資料庫物件與Form Based Authentication
延伸
http://www.bigresource.com/MS_SQL-rsreportserver-config-memorylimit-ignored-FCw3LjBT.html
FBA延伸議題
http://msdn.microsoft.com/en-us/library/system.web.security.aspx
asp.net 安全相關的namespace
沒有留言:
張貼留言